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

-the-poker-game

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

  • chess-gamePnet
    socket实现象棋游戏联网,程序中iP和port已指定,运行时根据自己的ip改下就行(chinese chess)
    2012-03-04 22:15:28下载
    积分:1
  • wuziqi
    控制台编的五子棋游戏,用的贪心算法,AI不算太高,但希望对像我一样菜的同学有所启发……(Console compiled 331 games, with the greedy algorithm)
    2011-10-29 19:07:00下载
    积分:1
  • tmp
    编写一个模拟人工洗牌的程序,将洗好的牌分别发给四个人。 使用结构card 来描述一张牌,用随机函数来模拟人工洗牌的过程,最后将洗好的52张牌顺序分别发给四个人。 对每个人的牌要按桥牌的规则输出。即一个人的牌要先按牌的花色(顺序为梅花、方块、红心和黑桃)进行分类,同一类的牌要再按A、K、Q、J、…、3、2牌的大小顺序排列。另发牌应按四个人的顺序依次分发。(Write a simulation program manual shuffle, the cards were sent to wash a good four. Card use to describe the structure of a card, with the random function to simulate the manual process of shuffling, and finally wash the good order of 52 cards were issued to four people. Cards for each person according to the rules of bridge output. That is, a person' s license have to press the card suit (in order of clubs, diamonds, hearts and spades) classification, the same type of licenses to press A, K, Q, J, ..., 3,2 card the size of the order. The other four licensing the order should be distributed.)
    2011-11-30 13:15:30下载
    积分: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
  • SimpleTetrisGame
    说明:  俄罗斯方块 一道简易的俄罗斯方块的制作 附源代码(Tetris Tetris together simple source code for the production of by-laws)
    2008-11-29 20:14:20下载
    积分:1
  • _0.5
    类似中国象棋的小游戏的实现(similar to a small Chinese chess games to achieve)
    2005-01-24 21:30:26下载
    积分:1
  • 人机对弈
    人机对弈五子棋游戏,本游戏使用VC为工具,完成了智能化的机器走棋!(man-machine players 331 games, the game using VC as a tool for the completion of intelligent machines go chess!)
    2005-04-22 08:20:44下载
    积分:1
  • wuziqi
    该工程是一个非常完整的,优化的五子棋源代码(VC),可以帮你学习路径选择算法和vc编程.(The project is a very complete, optimized Gobang source code (VC), can help you learn the path selection algorithm and programming vc.)
    2007-11-30 15:33:37下载
    积分:1
  • XTG-Game-Five
    一个成熟的网上五子期代码,使用层次化开发,都为控件方式,可进行扩充.(a maturity period of five children online code, the use of level of development, to have control, can be expanded.)
    2007-03-23 15:08:14下载
    积分:1
  • chess
    象棋的源代码,希望对你们有用哦。可以运行的(Chess source code, I hope useful to you, oh. Can run the)
    2009-04-24 11:30:58下载
    积分:1
  • 696524资源总数
  • 103930会员总数
  • 47今日下载