搜索资源列表
hm3
- 实现扑克牌的洗牌算法。 将52张牌(不包括大、小王)按东、南、西、北分发。 每张牌用一个对象代表,包括:牌的类型、大小序号、名称。 例如:黑头A的牌型为S,序号为13(在K之后),名称为A。 比较牌大小时按序号比较大小(2的序号最小、A最大) 显示牌时将按牌型、名称显示。 例如:东家最后牌为: S:1,4,12 H:7,9 D:2,4,8,10 C:4,5,12,13 注: 洗牌次数可用随机数来确定, Math.random()的
CardDeal
- 扑克牌的发牌程序。一副扑克牌,除去大小王,共52张,四个玩家,每人13张,随机性很大。可以运行一下看看效果。-cards for the licensing process. 1 cards removed Wang size, a total of 52, four players, each 13, the very randomness. Can look at the effect of this operation.
game_7
- 作者:王飞 (2001.05.11投搞)。联系信箱:wangfei@engineer.com.cn 这是一个黑白棋的游戏程序的源代码。 -Author : Wang Fei (2001.05.11 Optometry). Contact mail : wangfei@engineer.com.cn This is a reversi game's source code.
CardTest1
- 游戏说明: 牌的大小顺序: 大王,小王,A,K,Q,j,9,8,7,6,5,4,3,2 出牌规则: 每次只能出一张牌,每局开始时随机由其中一人先出牌,以后由上一次赢的玩家出牌。首家可以出任意一张牌。首家出牌后,下家所出的牌的花色要与首家的相同,大小不限。如确实没有花色相同的牌,则可以出其它的牌。 胜负判定: 当每人都出了一张牌后,如果花色相同,则比较两张牌的大小,牌大的赢.如果花色不同,则先出牌的赢。最后经过统计赢的次数最多的 玩家最终赢得比赛。 The rules is following:
chess
- 用VC++编写,运行稳定,中国象棋,小游戏精品,参考了王小春的<<PC游戏编程(人机博弈)>>编写-With VC++ Preparation, operation stability, Chinese chess, game products, with reference to the Xiao-Chun Wang
21dianpai
- 21点牌 使用C语言中顺序,选择,循环(三大结构)和随机函数,实现对一副牌(52张,除大小王)的初始化,洗牌,发牌,是否要牌,计算一次胜负并亮牌,计算总胜负等功能。 -21:00 licensing the use of C language in the order of selection, cycle (three structures) and the random function, implementation of a pair of license (52, with t
pcgame-programmingsoucecode
- 中国象棋源代码 五子棋源代码 参考王小春的<<PC游戏编程(人机博弈)>>-Chinese Chess source code and Chess source code reference Wang Xiao Chun <PC游戏编程(人机博弈)>
pc_game_book.ZIP
- 王小春的 pc游戏编程_人机博弈电子书下载(中国象棋算法),学习中国象棋软件的好书。-Wang Xiao Chun s machine game pc game programming ebook download _ (Chinese chess algorithm), a good book to learn Chinese Chess software.
zhajinhua
- 地主游戏中的牌型很多,算法也各有不同,但我总觉得网上一些通用的算法有点铺天盖地,所以,我决定自己来重新想一下算法,总的来说,无论你出什么处于,三带二,炸,4带一等,你总是有个主牌的,从牌只认张数,大小是无所谓的,所以,我将主牌清点出来应该就只有 对子,3条,炸弹,双王,顺子这五类,所以,在发牌或者拿到底牌后,我们直接将所有的主牌类型清理出来即可-Many landowners game card type, the algorithm is also different, but I the o
a1
- 创建一副扑克,并完成洗牌,显示洗过后的新牌,删除大王,小王,发牌等操作.是一个游戏小程序.(1)增加大小王 (2)删去一张指定扑克后,余牌显示 (3)创建一副扑克,显示一副扑克,洗牌,依次分给4个人并显示 -Creating a poker, and complete the reshuffle, show the new licensing washed after deleting King, Wang, licensing and other operations. s A g
wang-hu
- 详细说明:网狐6603游戏代码加教程。教程讲解详细,希望大家互相学习。-Details: 6603 Fox network game code plus tutorial. Tutorials to explain in detail, I hope you learn from each other.
斗地主源码
- 斗地主玩过没有?就是这么个玩意,三带一,要不去,对二,王炸!(Have you ever played a landlord? This is such a thing, three belt one, or go, to two, wang fry!)