-
用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
-
五子棋的游戏编程.用来学习,研究和娱乐.很好!
五子棋的游戏编程.用来学习,研究和娱乐.很好!-Gobang game programming. Used to study, research and entertainment. Very good!
- 2022-04-16 01:02:07下载
- 积分:1
-
我写的最后一版斗地主游戏,实现了所有的逻辑,但由于要移植到其他平台所以没写Animation和网络,有兴起的同志们可以向我要文档。...
我写的最后一版斗地主游戏,实现了所有的逻辑,但由于要移植到其他平台所以没写Animation和网络,有兴起的同志们可以向我要文档。
- 2022-02-14 14:04:54下载
- 积分:1
-
js仿游戏的物品栏目,原始脚本编写,没有任何框架,里面还附加一套五指棋js代码...
js仿游戏的物品栏目,原始脚本编写,没有任何框架,里面还附加一套五指棋js代码-js column items like games, the preparation of the original script, there is no framework, which is also an additional set of five fingers move js code
- 2023-07-08 17:15:04下载
- 积分:1
-
这是个用c编写的游戏源代码,是麻将的游戏,请查收
这是个用c编写的游戏源代码,是麻将的游戏,请查收-is prepared to use the c source code of the game, mahjong games, please find
- 2022-01-31 07:00:09下载
- 积分:1
-
Gobang algorithm a game to understand the basis of previous programming plus a l...
一个五子棋算法游戏理解了前人编程的基础上加了一点东西而已希望大家不要见笑-Gobang algorithm a game to understand the basis of previous programming plus a little something just hope that we will not stock
- 2022-05-08 09:01:12下载
- 积分:1
-
一个简单实用的vc五子棋游戏设计
一个简单实用的vc五子棋游戏设计- A simple practical vc gobang game designs
- 2022-11-14 06:15:03下载
- 积分:1
-
联网围棋源代码
联网围棋源代码-Go networking source code
- 2022-06-02 22:00:44下载
- 积分:1
-
一个用VB实现的TCP协议下的五子棋游戏
一个用VB实现的TCP协议下的五子棋游戏-a VB of the TCP 331 games
- 2022-01-22 11:08:20下载
- 积分:1
-
npoker网络扑克模拟器。
NPoker .Net based poker simulator
- 2022-01-26 00:44:38下载
- 积分:1