-
-the-poker-game
本程序利用Card类数组模拟扑克牌,定义3个数组分别表示玩家手中的牌,电脑手中的牌和底牌,用srand((unsigned)time(NULL))产生随机数字,将底牌数组中随机的一项从底牌中移动到其他的数组中,模拟从洗好底牌中抓牌。表示出牌。
单人练习模式中,首先记下一个 1到13之间的随机数字,然后玩家抓牌,当手中的牌的点数恰与记下的随机数字相等,或用手中有的任意两张牌,通过加减乘除四则运算可以凑出该随机数字相等的点数,则停止抓牌并将这一张或两张出出去,随即记下一个新的随机数字,开始下一轮,直道手中的全部牌出完,游戏结束(This procedure using Card class array to simulate playing cards, the definition of the 3 arrays represent the game player cards, computer cards and cards, using srand ((unsigned) time (NULL)) to generate random numbers, random number in the array will be a move to the number of cards from other groups of cards, simulation from the wash hand in. Said.
Single practice mode, first recorded random number between 1 to 13 next, and then the game player to draw cards, random number equal when the hand points exactly with the down, or in the hands of some arbitrary two cards, add, subtract, multiply and divide by four operations can make the random number equal points, then stop to draw a card and the card or two cards out, then write a new random number, start the next round, straight hands all the cards out, the end of the game)
- 2013-08-19 15:13:48下载
- 积分:1
-
pukepaidama
扑克牌游戏编程代码 行数不多但功能精确完好(pu ke pai you xi bian cheng dai ma )
- 2012-05-04 12:57:07下载
- 积分:1
-
HRBUST_GO_2013_08_12A
一个自主开发的围棋软件,有简单的ai进行对弈,适合新手学习之用(An independent development of chess software, chess has a simple ai be suitable for novice learning purposes)
- 2013-08-18 13:05:40下载
- 积分:1
-
ChineseChess
说明: 中国象棋棋盘C#实现,主要用于学习面向对象相关知识(Chinese chess board C# to achieve, mainly for learning object-oriented knowledge)
- 2009-07-26 22:20:46下载
- 积分:1
-
wuziqi
这是一段人与电脑下五子棋的程序,人H代表人,C代表电脑(This is a man with a computer under 331 procedures, human H representative, C for computer)
- 2013-10-16 23:00:24下载
- 积分:1
-
fivecheer
网络版本的五子棋.支持聊天,支持20桌同时进行游戏.(network version of the 331. Chat support, the support of 20 tables simultaneously game.)
- 2007-06-07 15:25:20下载
- 积分:1
-
sdk_dfj
说明: 一个用SDK写的打飞机游戏
对学SDK很有帮助(an SDK with the aircraft was made to learn the game SDK helpful)
- 2006-03-29 22:17:14下载
- 积分:1
-
QPWeb
网狐原版网站后台,绝对完整!超值!!!!(code wh web aaaaaaa)
- 2010-03-15 19:35:20下载
- 积分:1
-
N01111
射击游戏,吃豆子的游戏,简单的界面,逻辑很流畅(Shooting game, Pacman game, simple interface, logic is smooth)
- 2010-06-15 00:26:58下载
- 积分:1
-
VSCCP
Very Simple Chinese Chess Program
- 2011-10-14 00:17:02下载
- 积分:1