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

-the-poker-game

于 2013-08-19 发布 文件大小:5KB
0 155
下载积分: 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 个回复

  • three
    这个包括头文件,以及具体的实现函数(This is a chess game, three sons and a chess game, I hope you all like.)
    2012-02-22 18:34:16下载
    积分:1
  • 5-CCMJ
    网狐6.6长春麻将源码Changchun mahjong source network Fox 6.6(Changchun mahjong source network Fox 6.6)
    2011-10-06 14:54:07下载
    积分:1
  • draw
    一款五子棋游戏,可以实现人机交互,有打开、保存、反悔、输赢等功能(A 331 game, the human-computer interaction, there are open, save, go back, win or lose)
    2012-06-27 23:59:55下载
    积分:1
  • VC++
    残缺棋盘问题的VC++实现,用分而治之方法解决此问题(Defective chessboard problem VC++ Realize, using divide and conquer method to solve this problem)
    2008-02-25 16:11:23下载
    积分:1
  • N-Queen
    : N皇后问题,在一个N×N国际象棋盘 上,有N个皇后,每个皇后占一格;要求皇后间不会出现 相互“攻击”的现象,即不能有两个皇后处在同一行、同一 列或同一对角线上。问共有多少种不同的方法。下图以4 个皇后为例,说明一个正确的解( N是一个大于等于2并 且小于等于100的整数)(: N queens problem, a NN chess disk, N-Queen, Queen of the grid requirements between each other " attack" phenomenon does not appear in the Queen' s, that can not have two queens in the same row , the same column or on the diagonal. Asked a total of a number of different ways. The following diagram 4 Queen, for example, indicating that a correct solution (N is a number greater than or equal to 2 and less than or equal to an integer of 100))
    2012-08-31 17:31:00下载
    积分:1
  • DriectX 2D引擎
    windows下的一套棋牌游戏的代码,源码设置了多个拓展接口方面各个功能的二次开发(Windows under a set of board and card game code, the source code set up a number of expansion interface aspects of the secondary development of various functions)
    2019-05-05 11:36:22下载
    积分:1
  • chess-gamePnet
    socket实现象棋游戏联网,程序中iP和port已指定,运行时根据自己的ip改下就行(chinese chess)
    2012-03-04 22:15:28下载
    积分:1
  • five_vb_tcp
    网络VB语言开发的五子棋,工作量是一周的本科毕业设计。(VB language network Gobang development, the workload is one-week graduate design.)
    2008-12-10 14:52:50下载
    积分:1
  • chess
    中国象棋 重庆大学出版社出版的《PC游戏编程(人机博弈)》一书的配套光盘内容。( Discs supporting Chongqing University Press published "PC game programming (man-machine game)," a book)
    2013-12-17 09:10:12下载
    积分:1
  • ChineseChess
    说明:  中国象棋棋盘C#实现,主要用于学习面向对象相关知识(Chinese chess board C# to achieve, mainly for learning object-oriented knowledge)
    2009-07-26 22:20:46下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 31今日下载