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

-the-poker-game

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

  • QQ
    说明:  个完全开源的交互聊天软件 ,仿QQ版增加了服务器互联的功能,增加了服务器互连的功能,同时去掉了服务器集群的功能 增加了群组的功能,包括聊天室和游戏大厅 ,增加了一个网络五子棋游戏,改正了在有些网络环境下,每5分钟左右自动掉线的问题.(Fully interactive open-source chat software, an increase of imitation QQ server version of the function of the Internet, an increase of the interconnection functions of the server at the same time removed the functions of server clusters increase the group s functions, including chat rooms and gaming hall, an increase of a network Gobang games, corrected in some network environment, every 5 minutes automatically dropped the issue.)
    2008-12-01 08:34:59下载
    积分:1
  • _0.5
    类似中国象棋的小游戏的实现(similar to a small Chinese chess games to achieve)
    2005-01-24 21:30:26下载
    积分:1
  • 这是一个用VC写的五子人机对战程序
    这是一个用VC写的五子棋人机对战程序(This is a VC was the man-machine players 331 procedures)
    2005-01-17 00:20:25下载
    积分: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
  • Chess
    简易的中国象棋游戏,用VC++.net编程(Chinese chess)
    2013-03-11 08:43:04下载
    积分:1
  • card
    简单的10点半扑克牌游戏,最接近10点半者为胜,花牌算半点!(pukepai)
    2009-03-09 14:38:45下载
    积分: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
  • 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
  • gobang-game
    基于控制台的五子棋游戏,用easyX提供的图形接口进行编写,适合初学者,简单易懂,注释全面。注:安装图形库需要去EasyX官网下载“2012立冬版”,必须是这个版本,因为后来新的版本对有些函数做了调整,导致显示会有问题。(Console-based backgammon game, the graphical interface provided by easyX be written for beginners, easy to understand, comprehensive notes. Note: Installing graphics libraries need to EasyX official website to download " 2012 Lidong Edition" , must be this version, because the new version was made adjustments for some functions, resulting in the display there will be problems.)
    2014-10-11 14:53:47下载
    积分:1
  • sdk_dfj
    说明:  一个用SDK写的打飞机游戏 对学SDK很有帮助(an SDK with the aircraft was made to learn the game SDK helpful)
    2006-03-29 22:17:14下载
    积分:1
  • 696518资源总数
  • 105714会员总数
  • 27今日下载