-
一个有趣的黑白棋小游戏
一个有趣的黑白棋小游戏-an interesting little game reversi
- 2022-07-14 13:45:58下载
- 积分:1
-
用C++开发的中国麻将游戏(单机版),可以做为学习的范例。
――――――――――――――――――――――――――――――
游戏的基本运行
―――――...
用C++开发的中国麻将游戏(单机版),可以做为学习的范例。
――――――――――――――――――――――――――――――
游戏的基本运行
――――――――――――――――――――――――――-――――
运行前会先洒色子,根据色子与庄家给各玩家初始化手中的牌
1.初始化(根据庄家和色子数给每个人发12张牌)
2.牌墙发牌给庄家(m_nActive活动状态给庄家)
3.根据活动状态玩家是否是出牌状态(m_nState==1):如果是电脑,让其思考最差的一张牌并出牌,如果是人就让其自行选择(相应时间内没出牌就自动出刚抓的新牌(m_nNewPai))
4.根据玩家出的牌判断各玩家的优先级,优先级最大的玩家操作并把活动状态给他,(如果是人就等待其是否操作,时间内没响应就自动弃权)
5.如果有玩家操作了就返回第3步,如果没有玩家操作就进行第6步
6.如果没有玩家对刚出的牌操作就牌墙发牌给下一玩家,再返回第3步。
7.如果有人胡牌就统计分数,如果牌墙剩余的牌不到10张就流局,分数不变,游戏也结束。-C development of the Chinese game mahjong (single version), the study could serve as an example.------------------------------ The basic operation of the game------------------------------- first before running onto Boson. According Boson dealer to the player"s hands initialize a license. Initialization (according to several bankers and Boson issued to each person 12 Licensing) 2. Wall licensing licensing Makers (m_nActive activities to the state Makers) 3. According to state player of activities whether the card is the
- 2022-11-30 07:30:04下载
- 积分:1
-
俄罗斯方块的源代码,实现了我们最经常玩的俄罗斯芳块的游戏。...
俄罗斯方块的源代码,实现了我们最经常玩的俄罗斯芳块的游戏。-BLOCK.C ,BLOCK.H It is a game of block.the souice can get it .
- 2022-07-13 17:15:15下载
- 积分:1
-
这是一个用c++写的俄罗斯方块,比较简单,可以增加别的功能...
这是一个用c++写的俄罗斯方块,比较简单,可以增加别的功能-This is a vc written by the Russian box, relatively simple, other functions can be increased
- 2022-04-18 17:17:41下载
- 积分:1
-
给了小游戏的朋友。
送给研究小游戏的朋友们-given to the small games of friends.
- 2022-03-12 21:47:56下载
- 积分:1
-
是个把数码问题的求解,可以对输入的9个数字用A*算法进行排序。...
是个把数码问题的求解,可以对输入的9个数字用A*算法进行排序。-Is a digital problem solving, can be entered using the number 9 ranking A* algorithm.
- 2022-03-06 23:28:32下载
- 积分:1
-
本人自己写的俄罗斯方块游戏,基本功能都有,适合初学者学习...
本人自己写的俄罗斯方块游戏,基本功能都有,适合初学者学习-I wrote it myself Tetris game, the basic function, suitable for beginners to learn
- 2022-04-29 20:39:47下载
- 积分:1
-
五子棋游戏的C源代码
五子棋游戏的C源代码-331 games C source code
- 2022-05-22 04:02:41下载
- 积分:1
-
five games on the procedures related to socket programming and DirectDraw.
上载五个游戏程序,涉及到SOCKET编程和DirectDraw.-five games on the procedures related to socket programming and DirectDraw.
- 2022-07-20 15:02:34下载
- 积分:1
-
An international chess procedures realize man
一个国际象棋的程序,实现人机对战,普通的二维的游戏-An international chess procedures realize man-machine war, ordinary two-dimensional game
- 2022-12-02 18:35:03下载
- 积分:1