-
-the-poker-game
本程序利用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)
- 2013-08-19 15:13:48下载
- 积分:1
-
chess
局域网内的五子棋游戏,WIN32编程,可以很好的学习windows消息机制(Backgammon games, WIN32 programming LAN can be a good learning windows message mechanism)
- 2015-06-24 15:52:06下载
- 积分: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
-
N-Queen
: N皇后问题,在一个N×N国际象棋盘
上,有N个皇后,每个皇后占一格;要求皇后间不会出现
相互“攻击”的现象,即不能有两个皇后处在同一行、同一
列或同一对角线上。问共有多少种不同的方法。下图以4
个皇后为例,说明一个正确的解( N是一个大于等于2并
且小于等于100的整数)(: N queens problem, a NN chess disk, N-Queen, Queen of the grid requirements between each other " attack" phenomenon does not appear in the Queen' s, that can not have two queens in the same row , the same column or on the diagonal. Asked a total of a number of different ways. The following diagram 4 Queen, for example, indicating that a correct solution (N is a number greater than or equal to 2 and less than or equal to an integer of 100))
- 2012-08-31 17:31:00下载
- 积分:1
-
5636457457
VB语言写的台湾玩法的扑克牌游戏源代码。(Taiwan VB language play poker game source code.)
- 2013-08-06 08:52:17下载
- 积分:1
-
CardGames
发牌程序,利用MFC编写,采用双缓冲技术实现发牌和显示(Licensing procedures, written using MFC)
- 2013-04-02 19:18:01下载
- 积分:1
-
card
纸牌洗牌翻拍程序,实现对纸牌的洗牌,翻牌等功能,逐步演示,形象直观(Cards shuffle licensing procedures to achieve the cards of the reshuffle, flop and other functions, step by step demonstration, the visual image)
- 2016-09-28 13:05:10下载
- 积分: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
-
C_lanugae_BlackAndWhiteGames
黑白棋小程序的源代码,黑白棋的是一种智力游戏,采用了C++来实现这一种经典游戏(Othello applet source code, Othello is a mental game, using the C++ to achieve this a classic game)
- 2010-12-23 14:10:49下载
- 积分:1
-
penball
说明: C++语言实现弹球游戏,图形界面更加美观,声音丰富(C++ language pinball game, a graphical interface even more beautiful, rich sound)
- 2011-04-02 09:42:00下载
- 积分:1