登录
首页 » Visual C++ » -the-poker-game

-the-poker-game

于 2013-08-19 发布 文件大小:5KB
0 215
下载积分: 1 下载次数: 3

代码说明:

  本程序利用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)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • VSCCP
    Very Simple Chinese Chess Program
    2011-10-14 00:17:02下载
    积分:1
  • penball
    说明:  C++语言实现弹球游戏,图形界面更加美观,声音丰富(C++ language pinball game, a graphical interface even more beautiful, rich sound)
    2011-04-02 09:42:00下载
    积分:1
  • FiveChess
    网络版的VB五子棋,CS结构,含游戏大厅.(Online version of the VB backgammon, CS structures, including the game lobby.)
    2013-08-03 22:35:13下载
    积分:1
  • 五子C++源码
    个人开发五子棋游戏的源代码,利用MFC实现,仅供参考!(personal development renju game's source code, using MFC for reference!)
    2005-06-08 15:31:50下载
    积分:1
  • chess
    象棋的源代码,希望对你们有用哦。可以运行的(Chess source code, I hope useful to you, oh. Can run the)
    2009-04-24 11:30:58下载
    积分:1
  • chess-gamePnet
    socket实现象棋游戏联网,程序中iP和port已指定,运行时根据自己的ip改下就行(chinese chess)
    2012-03-04 22:15:28下载
    积分:1
  • Russia1.2
    俄罗斯方块,加了图片! 一样的俄罗斯方块, 不一样的感觉(Russian box, add the pictures! Like the Russian box, and not the same feeling)
    2007-03-07 16:57:08下载
    积分:1
  • wuziqi
    五子棋的实验报告 人工智能 包含的内容很丰富,要了很久,师兄才给的。(very good lecture for)
    2012-06-08 23:47:07下载
    积分:1
  • Chess_Easy
    基于Visual C++实现的局域网象棋游戏,Socket通信,多线程。(design the chess game by use Visual C++ , Socket technology, Mutil Thread.)
    2013-09-17 19:04:26下载
    积分:1
  • luoxuanzhenlie
    用C++实现的螺旋阵列,代码少,且看起来简洁明了(Spiral Array Implementation)
    2010-01-11 19:57:08下载
    积分:1
  • 696518资源总数
  • 106164会员总数
  • 18今日下载