-
用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
-
六级考试的时候编的,还包括了四个程序: 都是自己写的,一些参考了别人,本来还想上传一个大一时候的俄罗斯方块,结果没找着.老大现在功课太紧,我急需一个源程序,星期...
六级考试的时候编的,还包括了四个程序: 都是自己写的,一些参考了别人,本来还想上传一个大一时候的俄罗斯方块,结果没找着.老大现在功课太紧,我急需一个源程序,星期一就要交了,无论如何请放行.人都是会感恩的嘛.-six examination of the series, including the four procedures : all wrote it myself, some reference to the others, had wanted to upload a freshman when the Rubik"s cube, not discovered. Now eldest homework too, I hasten to a source, we must pay Monday, in any case please release. these are the people to the fact Thanksgiving.
- 2022-05-31 01:42:01下载
- 积分:1
-
这是一款人机对弈的中国象棋程序,可以选择搜索层数,可以悔棋。...
这是一款人机对弈的中国象棋程序,可以选择搜索层数,可以悔棋。-This is a man-machine chess players, the Chinese procedures, we can choose to search floors, he never cheat in spain.
- 2022-02-01 03:50:05下载
- 积分:1
-
With VC++ Preparation, operation stability, Chinese chess, game products, with r...
用VC++编写,运行稳定,中国象棋,小游戏精品,参考了王小春的编写-With VC++ Preparation, operation stability, Chinese chess, game products, with reference to the Xiao-Chun Wang
- 2022-02-04 00:17:55下载
- 积分:1
-
五子棋源代码+程序!BCB的!
五子棋源代码+程序!BCB的!-331+ source code procedures! BCB!
- 2022-08-07 11:40:15下载
- 积分:1
-
五子棋算法探讨,关键是对当前棋局是否有正确的评分
五子棋算法探讨,关键是对当前棋局是否有正确的评分-331 Algorithm, and the key is whether the current game score is correct
- 2022-06-12 00:19:29下载
- 积分:1
-
很有趣的中国象棋游戏的源代码,与大家分享
很有趣的中国象棋游戏的源代码,与大家分享-very interesting chess game"s source code to share with you
- 2022-02-26 01:35:09下载
- 积分:1
-
翻转棋游戏(64子每子正反面分别为黑白两色两人对弈)的源程序(29)590g008.zip纸牌游戏源程序...
翻转棋游戏(64子每子正反面分别为黑白两色两人对弈)的源程序(29)590g008.zip纸牌游戏源程序-overturned chess games (64-per-positive and negative for both black and white game) of the source (29) 590g008.zip source poker game
- 2022-05-21 14:05:29下载
- 积分:1
-
国际象棋比赛,整个比较
国际象棋游戏,比较全-international chess game, the entire comparison
- 2022-06-29 14:05:27下载
- 积分:1
-
五子棋游戏,里面包括了一些禁手的规则,支持人人对战,MFC开发...
五子棋游戏,里面包括了一些禁手的规则,支持人人对战,MFC开发-Backgammon games, which include some rules that ban hand, support for all Battle, MFC Developer
- 2022-08-12 16:21:28下载
- 积分:1