-
用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
-
delphi开发的五子棋程序,delphi开发的五子棋程序
delphi开发的五子棋程序,delphi开发的五子棋程序-Gobang delphi development process, delphi Gobang procedures developed
- 2022-01-25 20:20:45下载
- 积分:1
-
Everyone spent their childhood played a game. . . Produced with the BCB. .
一款每个人小时候都玩过的游戏。。。用BCB制作-Everyone spent their childhood played a game. . . Produced with the BCB. .
- 2022-09-26 05:55:03下载
- 积分:1
-
实现俄罗斯方块的源码。 能够演示如何编写一个简单的方块程序 同时还能够演示如何编写如何金山词霸一样的图形用户界面 以及浮雕字等效果...
实现俄罗斯方块的源码。 能够演示如何编写一个简单的方块程序 同时还能够演示如何编写如何金山词霸一样的图形用户界面 以及浮雕字等效果-achieve the source. To demonstrate how to prepare a simple squares procedure but will also demonstrate how to prepare how free email the same graphical user interface and the carved words such effects
- 2022-02-24 18:52:25下载
- 积分:1
-
simple game development's source
简单游戏开发源码之-四国军棋游戏源码
简单,易学-simple game development"s source-source Siguojunji games are simple and easy to learn
- 2022-04-19 08:03:31下载
- 积分:1
-
一个围棋的代码,代码质量非常高
一个围棋的代码,代码质量非常高-a code, code quality is very high
- 2022-02-13 03:10:56下载
- 积分:1
-
这是一个五子棋游戏,实现人机对弈,有提示音和背景音乐
这是一个五子棋游戏,实现人机对弈,有提示音和背景音乐-This is a backgammon game, realize man-machine chess, there are tips tone background music
- 2022-05-31 13:06:27下载
- 积分:1
-
做的一个作业,是个猜数字的网络版本.支持人机于多人注意,运行需要indy 9...
做的一个作业,是个猜数字的网络版本.支持人机于多人注意,运行需要indy 9-do an operation, is a ringing version of the network. Support crew to the attention of people, the operation of indy 9
- 2022-07-14 13:51:07下载
- 积分:1
-
- 2023-05-05 05:10:02下载
- 积分:1
-
npoker网络扑克模拟器。
NPoker .Net based poker simulator
- 2022-01-26 00:44:38下载
- 积分:1