-
用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
-
Ourgame imitation hall four countries flag, it is a deep, learning the meaning o...
仿联众游戏大厅四国军旗,很有深度,有学习意义-Ourgame imitation hall four countries flag, it is a deep, learning the meaning of
- 2022-05-15 00:33:14下载
- 积分:1
-
五子棋原代码,带界面
VC60编译通过
五子棋原代码,带界面
VC60编译通过-Gobang the original code, compiled with VC60 interface through
- 2022-12-23 09:35:03下载
- 积分:1
-
本程序中的搜索引擎为王小春的《PC游戏编程(人机博弈)》书中的搜索引擎,估值函数和开局库皆为自己设计.内含大量开局库资料和开局库格式转换程序.本版棋力比1.0版...
本程序中的搜索引擎为王小春的《PC游戏编程(人机博弈)》书中的搜索引擎,估值函数和开局库皆为自己设计.内含大量开局库资料和开局库格式转换程序.本版棋力比1.0版棋力增强不少。 发布此程序代码之用意在于提高我国共享象棋软件的棋力,让我们大家一起来开发开源的中国象棋软件.-the procedures for the search engine to guan "PC game programming (man-machine game)" book search engine, and the valuation function for both start their own design. Start library contains a lot of information and start procedures for format conversion. 1.0% spotlight than many enhanced version of chess. Published this code was intended to enhance our shared the spotlight chess software, so we can together open-source software in Chinese chess.
- 2022-03-20 06:20:47下载
- 积分:1
-
单机版五子棋感觉不错,3个等级智能AI可以选择
单机版五子棋感觉不错,3个等级智能AI可以选择-single version renju feeling good, the three grades can choose intelligent AI
- 2023-03-06 17:40:03下载
- 积分:1
-
象棋小巫师的源码,棋力不错,希望对大家有帮助
象棋小巫师的源码,棋力不错,希望对大家有帮助-Chess Wizards of the source of small,棋力good, and they hope to help everyone
- 2022-01-26 06:13:34下载
- 积分:1
-
这是一个21点小游戏.很有意思的.是我们上课饿一个课程设计.如果有什么不好的地方,请多多指教....
这是一个21点小游戏.很有意思的.是我们上课饿一个课程设计.如果有什么不好的地方,请多多指教.-This is a small 21-point game. Very interesting. We are a hungry school curriculum design. If there is anything that is not good places, the exhibitions.
- 2022-05-23 14:22:06下载
- 积分:1
-
中国象棋C语言算法
中国象棋C语言算法-Chinese chess C language algorithms.
- 2022-02-05 04:56:37下载
- 积分:1
-
I see a very good small game, in the development stage!
我看到的一个很不错的小游戏,处于开发阶段!-I see a very good small game, in the development stage!
- 2022-01-26 05:23:49下载
- 积分:1
-
这是一个VC++的跳棋程序..希望给这个网站提供一下
这是一个VC++的跳棋程序..希望给这个网站提供一下-This is a VC drafts procedures .. hope to provide what the site
- 2022-11-12 04:55:03下载
- 积分:1