-
用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
-
这是一个microsoft VC++写的俄罗斯方块的小程序
这是一个microsoft VC++写的俄罗斯方块的小程序-This a microsoft VC++ to write of Russia"s small squares procedure.
- 2022-07-02 17:21:23下载
- 积分:1
-
国际棋盘上马的周游问题,该问题描述了国际象棋棋盘上的一只马,恰好走过除起点外的其它位置各一次,最后回到起点。这条路线称为一条马的Hamilton 周游路线...
国际棋盘上马的周游问题,该问题描述了国际象棋棋盘上的一只马,恰好走过除起点外的其它位置各一次,最后回到起点。这条路线称为一条马的Hamilton 周游路线-Launched an international board of the travel issue that describes the chess board on a horse, just walked outside the other locations except the starting point of all time, finally returned to the starting point. This line is called a horse" s Hamilton tour route
- 2022-02-22 12:00:51下载
- 积分:1
-
support network of war renju procedures can single game! SECTION very pretty!
支持网络对战的五子棋程序,也可以单人游戏!截面很漂亮!-support network of war renju procedures can single game! SECTION very pretty!
- 2022-05-22 12:27:18下载
- 积分:1
-
易语言 局域网斗地主的源码 易语言 局域网斗地主的源码 易语言 局域网斗地主的源码...
易语言 局域网斗地主的源码 易语言 局域网斗地主的源码 易语言 局域网斗地主的源码-LAN Yi language斗地主easy source of the source language斗地主LAN LAN easy language斗地主easy source of the source language斗地主LAN LAN斗地主easy language of the source
- 2022-12-24 19:25:03下载
- 积分:1
-
五子棋
五子棋- Gobang
- 2022-01-31 12:05:33下载
- 积分:1
-
五子棋游戏,支持单机和网络。
五子棋游戏,支持单机和网络。-331 games, stand-alone and network support.
- 2022-12-05 13:35:03下载
- 积分:1
-
五子棋游戏原码 开发环境为VC++6.0 中科院教学示例
五子棋游戏原码 开发环境为VC++6.0 中科院教学示例-331 original game code development environment for the VC 6.0 CAS teaching practices
- 2022-11-09 00:10:03下载
- 积分:1
-
一个java做的国际象棋小游戏.是一个功能完善的chess小游戏,快来看看吧...
一个java做的国际象棋小游戏.是一个功能完善的chess小游戏,快来看看吧-do a java small international chess game. One function is the perfect small chess games, Come see exciting! !
- 2022-03-21 04:36:55下载
- 积分:1
-
This is a c# Realize the Gobang, chess is very beautiful, and in its dehlp rich...
这是用c#实现的五子棋,棋子很漂亮,内并富有其dehlp源码链接,这对有dehpl知识的朋友也有一些指导作用-This is a c# Realize the Gobang, chess is very beautiful, and in its dehlp rich source of links, which have knowledge dehpl Friend also has some role in guiding
- 2022-03-04 21:19:48下载
- 积分:1