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

-the-poker-game

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

  • 5636457457
    VB语言写的台湾玩法的扑克牌游戏源代码。(Taiwan VB language play poker game source code.)
    2013-08-06 08:52:17下载
    积分:1
  • lelss-linuuxi
    用linuX 下的C语言 运用CURSES开发的俄罗斯方方块游戏源码,非常好,这个是本人原创,值的参考 可直接使用。 (The C language under Linux using CURSES development of the Russian puzzle game source code, very good, this is my original, the value of the reference can be directly used.)
    2012-07-17 22:31:34下载
    积分:1
  • chess
    象棋的源代码,希望对你们有用哦。可以运行的(Chess source code, I hope useful to you, oh. Can run the)
    2009-04-24 11:30:58下载
    积分:1
  • wuziqi
    五子棋的实验报告 人工智能 包含的内容很丰富,要了很久,师兄才给的。(very good lecture for)
    2012-06-08 23:47:07下载
    积分: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
  • 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
  • LLK1.41_FullSources
    连连看.net代码。最新更新的,VS2005开发。(Lianliankan. Net code. The latest update, VS2005 development.)
    2008-04-18 09:28:04下载
    积分:1
  • five_vb_tcp
    网络VB语言开发的五子棋,工作量是一周的本科毕业设计。(VB language network Gobang development, the workload is one-week graduate design.)
    2008-12-10 14:52:50下载
    积分:1
  • Backgammon
    五子棋是有两个人在一盘棋上进行对抗的竞技运动。在对局开始时,先由用户选择哪方先开局,先开局一方将一枚棋子落在一点上,然后由另一方在对方棋周围的交叉点上落子,如此轮流落子,直到某一方首先在棋盘的直线、横线或斜线上形成连续的五子则该方就算获胜。此时,算法结束。当有任何一方想退出时,都可在算法中实现。(Backgammon is a competitive sport confrontation of two people in a game of chess. At the beginning of the game, the first users to choose which side first start, first start the party will be a pawn falls point, and then by the other party on the other chess around the intersection of Lazi, so turns Lazi, until the party first the chessboard straight, horizontal or diagonal to form a continuous five sons even if the party wins. In this case, the algorithm ends. When either party wishes to withdraw from, can be realized in the algorithm.)
    2012-11-05 20:18:00下载
    积分:1
  • tmp
    编写一个模拟人工洗牌的程序,将洗好的牌分别发给四个人。 使用结构card 来描述一张牌,用随机函数来模拟人工洗牌的过程,最后将洗好的52张牌顺序分别发给四个人。 对每个人的牌要按桥牌的规则输出。即一个人的牌要先按牌的花色(顺序为梅花、方块、红心和黑桃)进行分类,同一类的牌要再按A、K、Q、J、…、3、2牌的大小顺序排列。另发牌应按四个人的顺序依次分发。(Write a simulation program manual shuffle, the cards were sent to wash a good four. Card use to describe the structure of a card, with the random function to simulate the manual process of shuffling, and finally wash the good order of 52 cards were issued to four people. Cards for each person according to the rules of bridge output. That is, a person' s license have to press the card suit (in order of clubs, diamonds, hearts and spades) classification, the same type of licenses to press A, K, Q, J, ..., 3,2 card the size of the order. The other four licensing the order should be distributed.)
    2011-11-30 13:15:30下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载