-
用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
-
著名开源国际象棋软件WinBoard源码
著名开源国际象棋软件WinBoard源码-Well-known open source chess software WinBoard
- 2022-07-05 02:41:20下载
- 积分:1
-
Reversi game is the thematic reports, which detailed the Gobang the entire produ...
黑白棋游戏的专题报告,里面详细介绍了五子棋的整个制作过程及如何使用-Reversi game is the thematic reports, which detailed the Gobang the entire production process and how to use
- 2022-05-09 11:00:48下载
- 积分:1
-
我的第一个五子棋的服务端程序
我的第一个五子棋的服务端程序-My first client service procedures Gobang
- 2022-01-21 20:55:39下载
- 积分:1
-
24点游戏软件的开发
是游戏开发入门的好帮手
24点游戏软件的开发
是游戏开发入门的好帮手-24-point game software development is the development of games portal"s helping hands
- 2022-12-30 03:25:04下载
- 积分:1
-
拱猪源码vc++ 拱猪源码vc++拱猪源码vc
拱猪源码vc++ 拱猪源码vc++拱猪源码vc-拱猪source vc++拱猪source vc++拱猪source vc
- 2022-12-07 14:30:02下载
- 积分:1
-
五子棋程序,c语言描述,可以扩展,也可以直接使用
五子棋程序,c语言描述,可以扩展,也可以直接使用-Gobang procedures, c language description can be extended, can also be used directly
- 2023-08-25 18:50:02下载
- 积分:1
-
围棋打谱程序 用JAVA进行编写 比较简单
围棋打谱程序 用JAVA进行编写 比较简单-Go play with Java spectrum procedures for the preparation of relatively simple
- 2022-04-22 21:49:54下载
- 积分:1
-
VC编写的围棋游戏程序
VC编写的围棋游戏程序-Go prepared VC games
- 2022-10-12 17:35:03下载
- 积分:1
-
格子棋游戏的C语言源程序,适合初学者学习使用
格子棋游戏的C语言源程序,适合初学者学习使用-Lattice chess game of C language source code, suitable for beginners learning to use
- 2022-11-20 22:20:03下载
- 积分:1