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

-the-poker-game

于 2013-08-19 发布 文件大小:5KB
0 218
下载积分: 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
  • 这是一个用VC写的五子人机对战程序
    这是一个用VC写的五子棋人机对战程序(This is a VC was the man-machine players 331 procedures)
    2005-01-17 00:20:25下载
    积分:1
  • C+++Weekend+Crash+Course
    C+++Weekend+Crash+Course这是一个中国象棋的原代码(C+++ Weekend+ Crash+ Course This is a Chinese chess original code)
    2008-07-04 11:19:10下载
    积分:1
  • chess
    局域网内的五子棋游戏,WIN32编程,可以很好的学习windows消息机制(Backgammon games, WIN32 programming LAN can be a good learning windows message mechanism)
    2015-06-24 15:52:06下载
    积分:1
  • Horse-Stepping-on-board
    在传统中国象棋中,马走日型路线。本代码就是按其规则,让马从棋盘任一点开始,输出它可以行走的所有点的坐标。(In traditional Chinese chess, horse go day-type line. The code according to the rules, let the horse from checkerboard any point, the coordinates of all points of output it can walk.)
    2012-05-08 16:08:57下载
    积分:1
  • Backgammon
    五子连珠的VC源码,简单有趣 (Five or VC source, easy and fun )
    2013-07-20 17:54:18下载
    积分:1
  • 完整的四人网络麻将
    实现了一个完整的四人网络麻将游戏,该程序集服务器与客户端功能与一体。本章主要介绍了非对等的网络服务功能的建立,传输信息的序列化,建立虚拟的三维空间,绘制图形和显示位图,在内存中创建位图和绘制图形等。(achieve a complete network of four mahjong games, the procedures set server and client functions and integration. This chapter introduces the non-reciprocal network services established, the sequence of transmission of information, the establishment of a virtual three-dimensional space, drawing and display bitmap in memory to create bitmap graphics and mapping.)
    2005-06-20 16:32:22下载
    积分: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
  • card
    简单的10点半扑克牌游戏,最接近10点半者为胜,花牌算半点!(pukepai)
    2009-03-09 14:38:45下载
    积分:1
  • gnuchess-5.07
    一款国际象棋的C++源代码,可以实现人机对战,而且AI的棋力不错(A chess in C++ source code, can achieve man-machine Battle, and a good AI' s Qi Li)
    2009-12-11 18:08:34下载
    积分:1
  • 696518资源总数
  • 106235会员总数
  • 12今日下载