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

-the-poker-game

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

  • 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五子网络版本1.0
    网络五子棋系统,用vc实现.学习vc对话框编程,网络编程。(331 network system, using vc achieve. Learning vc dialog programming, network programming.)
    2005-06-16 12:03:04下载
    积分:1
  • chess
    中国象棋 重庆大学出版社出版的《PC游戏编程(人机博弈)》一书的配套光盘内容。( Discs supporting Chongqing University Press published "PC game programming (man-machine game)," a book)
    2013-12-17 09:10:12下载
    积分:1
  • surakarta
    这是一个苏拉卡尔塔的程序 包括界面设计和后台代码(This is a program of Surakarta, including interface design and code-behind)
    2020-10-22 17:47:23下载
    积分:1
  • sanguo
    一款三国游戏,描述名将关羽勇猛杀敌,画面一般,新手上路(A three game, describing famous Guan Yu brave enemy, the general picture, Newbie)
    2011-11-21 22:35:05下载
    积分:1
  • SimpleTetrisGame
    说明:  俄罗斯方块 一道简易的俄罗斯方块的制作 附源代码(Tetris Tetris together simple source code for the production of by-laws)
    2008-11-29 20:14:20下载
    积分:1
  • 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
  • chess
    象棋的源代码,希望对你们有用哦。可以运行的(Chess source code, I hope useful to you, oh. Can run the)
    2009-04-24 11:30:58下载
    积分:1
  • wzq
    五子棋小程序,实现双人对抗,能完成悔棋,复盘,等基本功能。在玩棋时,能自动判禁手以及判赢。(Gobang small procedures, to achieve double confrontation, to complete悔棋, rehabilitation sites, such as basic features. Playing chess, they can automatically cut the hands and sub-contractors to win.)
    2008-06-26 21:47:09下载
    积分:1
  • wuziqi
    五子棋程序设计,设计方式步骤详尽解释,适合初学者,让你熟悉C语言(Backgammon program design, design approach procedure detailed explanation, suitable for beginners, so you are familiar with the C language)
    2013-08-13 10:31:30下载
    积分:1
  • 696518资源总数
  • 106182会员总数
  • 24今日下载