-
-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
-
chess
中国象棋
重庆大学出版社出版的《PC游戏编程(人机博弈)》一书的配套光盘内容。(
Discs supporting Chongqing University Press published "PC game programming (man-machine game)," a book)
- 2013-12-17 09:10:12下载
- 积分:1
-
gnuchess-5.07
一款国际象棋的C++源代码,可以实现人机对战,而且AI的棋力不错(A chess in C++ source code, can achieve man-machine Battle, and a good AI' s Qi Li)
- 2009-12-11 18:08:34下载
- 积分:1
-
VSCCP
Very Simple Chinese Chess Program
- 2011-10-14 00:17:02下载
- 积分:1
-
xiangqi.tar
在vc平台下编写的一款简单的开源象棋游戏,人机对战模式。(A simple chess game)
- 2011-11-02 12:55:45下载
- 积分:1
-
C_lanugae_BlackAndWhiteGames
黑白棋小程序的源代码,黑白棋的是一种智力游戏,采用了C++来实现这一种经典游戏(Othello applet source code, Othello is a mental game, using the C++ to achieve this a classic game)
- 2010-12-23 14:10:49下载
- 积分:1
-
20dianyouxi
20点小游戏,学会它可以让你在朋友前炫耀一下。(this case is a 20-point game, learn which will allow you to show off at a friend s before)
- 2012-02-17 22:19:38下载
- 积分:1
-
FiveChess
一个自己写的五子棋程序。包括人机和双人对战。(Renju program. Including the man-machine and two against.)
- 2012-02-28 12:39:34下载
- 积分:1
-
five_vb_tcp
网络VB语言开发的五子棋,工作量是一周的本科毕业设计。(VB language network Gobang development, the workload is one-week graduate design.)
- 2008-12-10 14:52:50下载
- 积分:1
-
chinaxq
中国象棋网络版,本人写了将近一个月才完成的,部分是参考网上的.(Chinese Chess online version, I wrote almost a month to complete, partly with reference to the web.)
- 2007-12-10 16:00:20下载
- 积分:1