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

-the-poker-game

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

  • Net5-
    Net5 是一个支援网路连线的五子棋游戏,可以让你透过网路跟你的亲朋好友 来场五子棋大赛,不过Net5 并没有设计单人的模式,只能利用连线来玩。 (Net5 331 games is a support network connections, allowing you to through the Internet with your friends and family To field 331 contest, but Net5 and design of single mode, only the use of connection play.)
    2012-05-17 14:41:19下载
    积分:1
  • 五子源码
    一个五子棋源码 .(a source.)
    2004-12-22 23:47:05下载
    积分:1
  • chess
    中国象棋 重庆大学出版社出版的《PC游戏编程(人机博弈)》一书的配套光盘内容。( Discs supporting Chongqing University Press published "PC game programming (man-machine game)," a book)
    2013-12-17 09:10:12下载
    积分: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
  • MyChess5
    用API实现的五子棋程序,人人版,对C++API程序的初学者应该有一定的帮助(Backgammon program with the API implementation, all versions of C++ API program should be helpful for beginners)
    2011-11-18 10:56:24下载
    积分:1
  • Gomoku
    简单五子棋,简单学习算法,很弱的AI,原文是Python语句,现改写位c++(Simple backgammon, simple learning algorithm, very weak AI, the original is a Python statement, is now rewritten bit c++)
    2017-06-19 22:08:12下载
    积分:1
  • source-code-VC-P-P-Othello
    说明:  带背景音乐的VC++黑白棋源代码,程序简单又娱乐(With background sound source code VC++ Othello)
    2011-03-13 18:32:24下载
    积分:1
  • qizhuanPP
    棋壮++(中国象棋UCCI引擎)源程序是基于UCCI协议开发的中国象棋程序引擎,可加载于象棋旋风、弈天、兵河等象棋界面。(Chess the strong++ (Chinese chess the UCCI engine that) source is based on Chinese chess program UCCI protocol development engine, can be loaded in xuanfeng, yitian Binghe chess interface.)
    2013-01-08 13:18:38下载
    积分:1
  • VCPP-chess
    这是一个vc++的中国象棋的程序设计,较为方便(This is a vc++ programming Chinese chess, more convenient)
    2015-05-28 10:14:40下载
    积分:1
  • PC-boyi
    象棋是一种完全知识博弈,本书介绍一些技术应用于这种博弈(Chess is a game full of knowledge, the book introduces some of the techniques used in this game)
    2011-11-11 17:51:47下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载