-
用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
-
这是一个关于中国象棋的源代码程序,需要的朋友可以参考一下。包含客户端和服务端,...
这是一个关于中国象棋的源代码程序,需要的朋友可以参考一下。包含客户端和服务端,-This is a Chinese chess on the source code of procedure, the need for a friend for reference. Contains client and server,
- 2022-10-29 04:35:03下载
- 积分:1
-
C source development of the 331 small programs
用C开发的五子棋源小程序-C source development of the 331 small programs
- 2022-10-14 19:10:03下载
- 积分:1
-
内有源码及Jar文件,实现了俄罗斯方块的单机和网络功能。
内有源码及Jar文件,实现了俄罗斯方块的单机和网络功能。-There are source and the Jar file, the realization of Russia
- 2022-07-16 05:57:10下载
- 积分:1
-
无聊,自己编的拱猪发牌程序的源代码
无聊,自己编的拱猪发牌程序的源代码-frivolous, Gongzhu own addendum to the licensing procedures for the source code.
- 2022-09-15 18:25:03下载
- 积分:1
-
采用VC++.net编写的一个国际象棋模拟程序,包含二维碰撞检测和区域无效等方法...
采用VC++.net编写的一个国际象棋模拟程序,包含二维碰撞检测和区域无效等方法-using VC. Net prepared by an international chess simulation program, include 2D collision detection and regional ineffective methods
- 2022-04-08 18:34:53下载
- 积分:1
-
VC++五子棋随着互联网的发展,有其自己的变化规则。
用vc开发的互联网五子棋,该游戏进过自己的修改,已经和网络上的几乎一样了-Vc Gobang with the development of the Internet, which had its own changes into the game, already on the network is almost the same as the
- 2022-06-30 20:21:44下载
- 积分:1
-
network Go program, realized the Internet players.
用java写的网络围棋程序,实现网上对战。-network Go program, realized the Internet players.
- 2022-11-20 04:30:03下载
- 积分:1
-
本程序是用vc来实现五子棋的基本算法,非常经典!
本程序是用vc来实现五子棋的基本算法,非常经典!-this program is to achieve 331 vc the basic algorithm, very classic!
- 2022-07-11 17:42:58下载
- 积分:1
-
一个我自己写的网络版五子棋程序源代码,用VC++实现的,没有服务器的网络五子棋。...
一个我自己写的网络版五子棋程序源代码,用VC++实现的,没有服务器的网络五子棋。-I wrote it myself an online version of Gobang source code, using VC++ Realize, and there is no network server Gobang.
- 2022-10-21 11:20:04下载
- 积分:1