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

-the-poker-game

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

  • Poker
    用socket 编写的够击.自定义了网络传输的规约,和发牌规则.(Socket prepared with enough hit. Since the definition of the network transmission of the Statute, and licensing rules.)
    2008-04-19 15:27:21下载
    积分:1
  • card
    纸牌洗牌翻拍程序,实现对纸牌的洗牌,翻牌等功能,逐步演示,形象直观(Cards shuffle licensing procedures to achieve the cards of the reshuffle, flop and other functions, step by step demonstration, the visual image)
    2016-09-28 13:05:10下载
    积分:1
  • Ptu
    一款拼图游戏的基础代码,适合课堂初步教学时所用(A jigsaw puzzle of the underlying code for classroom use when the initial teaching)
    2011-05-22 12:53:53下载
    积分:1
  • Backgammon
    五子连珠的VC源码,简单有趣 (Five or VC source, easy and fun )
    2013-07-20 17:54:18下载
    积分: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
  • 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
  • chess
    象棋的源代码,希望对你们有用哦。可以运行的(Chess source code, I hope useful to you, oh. Can run the)
    2009-04-24 11:30:58下载
    积分:1
  • llk
    VC++ 6.0开发的游戏大厅,采用C/S模式,里面包含一个连连看游戏。(VC++ 6.0 developers of the game hall, with C/S model, which includes a Lianliankan game.)
    2020-12-09 11:59:19下载
    积分:1
  • guojimajiang
    网狐6603国际麻将,视频麻将,完美无错,值得拥有(Fox 6603 International Mahjong, Mahjong video, perfect no mistake, worth having)
    2013-11-28 13:56:34下载
    积分:1
  • heibaiqi
    人人对战的黑白棋(Everyone against Riversi)
    2008-06-08 12:23:31下载
    积分:1
  • 696522资源总数
  • 104042会员总数
  • 46今日下载