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

-the-poker-game

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

  • 这是一个用VC写的五子人机对战程序
    这是一个用VC写的五子棋人机对战程序(This is a VC was the man-machine players 331 procedures)
    2005-01-17 00:20:25下载
    积分:1
  • chinaxq
    中国象棋网络版,本人写了将近一个月才完成的,部分是参考网上的.(Chinese Chess online version, I wrote almost a month to complete, partly with reference to the web.)
    2007-12-10 16:00:20下载
    积分: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
  • 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
  • HRBUST_GO_2013_08_12A
    一个自主开发的围棋软件,有简单的ai进行对弈,适合新手学习之用(An independent development of chess software, chess has a simple ai be suitable for novice learning purposes)
    2013-08-18 13:05:40下载
    积分:1
  • CardGames
    发牌程序,利用MFC编写,采用双缓冲技术实现发牌和显示(Licensing procedures, written using MFC)
    2013-04-02 19:18:01下载
    积分:1
  • renjixiaqi
    人机下棋:在3×3棋盘上,计算机为一方,用户为一方,交替画“X”和“O”,在行、列、对角线上谁先练成一条直线谁就获得胜利。用类的思想完成,具体功能要求如下: (1)状态显示:计算机可正确显示棋盘,给出提示信息和胜负判断。 (2)用户选择:用户可以选择是先下还是后下,并选择棋子是“X”还是“O”。 (3)每一步都用图形化方式顺序输出 (Man-machine chess: on the 3 X 3 board, the computer for one party, the user for a party, draw an X and O alternately, in the row, column and diagonal who practice who would win in a straight line. Finish, with the ideas of the class specific functional requirements are as follows: (1) status display: the computer can correctly display board, giving prompt information and the outcome of judgment. (2) the user choice: the user can next is first or after, and the pieces is a X or O .)
    2020-07-04 13:00:02下载
    积分:1
  • Fivechess
    实现简单的五指棋的功能 ,还有背景的音乐MPE3播放器(Implement a simple function of five fingers move, there is background music MPE3 player)
    2013-03-05 16:33:05下载
    积分:1
  • 0206220330
    一个用Visal C++编写的俄罗斯方块小程序。(A used Visal C++ Prepared Tetris applet.)
    2008-07-15 08:44:06下载
    积分:1
  • wuziqi
    五子棋巧妙设计,可以帮你设计出界面丰富的五子棋,很好玩(Backgammon clever design can help you design the 331 interface, a lot of fun)
    2012-05-21 18:25:06下载
    积分:1
  • 696518资源总数
  • 105661会员总数
  • 6今日下载