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

-the-poker-game

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

  • wuziqi
    五子棋游戏源码,界面优美经典,编程思路清晰,非常适合学习。(Backgammon game source code, interface and beautiful classic programming ideas clearly, very suitable for learning.)
    2013-04-05 23:20:51下载
    积分:1
  • chess
    局域网内的五子棋游戏,WIN32编程,可以很好的学习windows消息机制(Backgammon games, WIN32 programming LAN can be a good learning windows message mechanism)
    2015-06-24 15:52:06下载
    积分:1
  • BWChess
    C++开发的BWChess黑白棋游戏,界面差不多,功能挺多的,可以与电脑下棋也可以人与人对战,可以提醒,记录对战排行榜。(C++ development BWChess Reversi game, the interface is similar to the挺多function, you can play chess with the computer can also be against people can be reminded to record against the list.)
    2009-07-12 11:13:40下载
    积分: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
  • wzq
    一个简单的五子棋程序,可以人机对弈,采用opencv1.0+vc6.0,来自于网上(A simple backgammon procedures can be man-machine chess, using opencv1.0+ vc6.0, the Internet)
    2016-12-23 09:57:42下载
    积分:1
  • chesschina
    我自己的毕业设计,中国象棋,界面加音乐播放都算可以,而且可以学习vc堆栈的使用,算法一般。(My graduation project, Chinese chess, plus music player interface can all count, but can also study the use of stack vc.)
    2009-02-16 14:48:33下载
    积分:1
  • flychess
    用MFC编写的飞行棋游戏,包括游戏界面、核心算法、走棋动画的实现。(Prepared using MFC flight chess games, including the game interface, the core algorithm, take the chess animation implementation.)
    2021-04-24 14:18:47下载
    积分:1
  • black_white_chess
    black white chess black white chess black white chess black white chess
    2009-09-19 16:14:31下载
    积分:1
  • FIVE
    自己写的五子棋代码,可以直接执行,效率很高(Write your own backgammon code that can be executed directly, high efficiency)
    2013-10-10 10:56:31下载
    积分:1
  • FiveChess
    网络版的VB五子棋,CS结构,含游戏大厅.(Online version of the VB backgammon, CS structures, including the game lobby.)
    2013-08-03 22:35:13下载
    积分:1
  • 696522资源总数
  • 104040会员总数
  • 35今日下载