登录
首页 » 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 个回复

  • eleeye
    著名象棋软件象棋巫师源代码。循序渐进实现象棋巫师。(Famous chess wizard chess software source code. Progressive realization of chess wizard.)
    2021-01-09 21:18:56下载
    积分:1
  • 85646465467
    VB语言写的扑克牌电脑魔术——读懂你的心源代码.(VB language to write the poker magic computer- read your source code.)
    2013-08-09 11:36:59下载
    积分: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
  • wuziqi
    c语言版五子棋,与pc版一样,拥有良好的界面(c yuyait can run on the pc)
    2016-12-28 14:26:29下载
    积分:1
  • wuziqi
    五子棋小程序,基于MFC的编程,简单的小程序(Backgammon program, based MFC)
    2012-12-09 15:56:37下载
    积分:1
  • wuziqi
    五子棋巧妙设计,可以帮你设计出界面丰富的五子棋,很好玩(Backgammon clever design can help you design the 331 interface, a lot of fun)
    2012-05-21 18:25:06下载
    积分:1
  • Game
    小游戏集合 五子棋+黑白棋+俄罗斯方块+井字游戏(game)
    2010-11-05 10:43:45下载
    积分:1
  • MyChess5
    用API实现的五子棋程序,人人版,对C++API程序的初学者应该有一定的帮助(Backgammon program with the API implementation, all versions of C++ API program should be helpful for beginners)
    2011-11-18 10:56:24下载
    积分:1
  • three
    这个包括头文件,以及具体的实现函数(This is a chess game, three sons and a chess game, I hope you all like.)
    2012-02-22 18:34:16下载
    积分:1
  • 111
    俄罗斯方块 Visual C++ 6 源码(Tetris Visual C++ 6 source)
    2007-11-25 09:42:25下载
    积分:1
  • 696518资源总数
  • 105949会员总数
  • 22今日下载