-
一个简单的围棋程序,可以二人对弈,能完成吃子,计算胜负。...
一个简单的围棋程序,可以二人对弈,能完成吃子,计算胜负。-Go a simple procedure, two players can-eat completed, the results calculated.
- 2022-04-22 08:51:10下载
- 积分:1
-
用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
-
Chinese Chess, VC development, to try it to see whether you can beat the compute...
中国象棋,VC开发,来试一试吧,看你能不能打败电脑-Chinese Chess, VC development, to try it to see whether you can beat the computer
- 2023-05-11 19:45:04下载
- 积分:1
-
九江麻将源程序
九江麻将源程序-Jiujiang mahjong source
- 2023-04-01 02:10:03下载
- 积分:1
-
应用平台SCO OpenServer 5一331的C程序,包括源代码…
应用平台 SCO OpenServer 5 一个五子棋的C程序,含源代码和目标程序,做的非常不错,对话也很有意思!-application platform SCO OpenServer 5 a 331 C procedures, including source code and objectives of procedures done very well, the dialogue is also very interesting!
- 2022-07-23 21:50:15下载
- 积分:1
-
c语言编写的五子棋程序
c语言编写的五子棋程序-of 331 procedures
- 2022-02-05 07:30:18下载
- 积分:1
-
Gobang easy implementation of the game
实现简单的五子棋小游戏,样式与WINDOWS自带的很像-Gobang easy implementation of the game
- 2022-03-05 08:25:25下载
- 积分:1
-
这是一个五子棋游戏,实现人机对弈,有提示音和背景音乐
这是一个五子棋游戏,实现人机对弈,有提示音和背景音乐-This is a backgammon game, realize man-machine chess, there are tips tone background music
- 2022-05-31 13:06:27下载
- 积分:1
-
这是一个很不错的游戏!!!!!!!!! 希望对它感兴趣 的同志能用的着....
这是一个很不错的游戏!!!!!!!!! 希望对它感兴趣 的同志能用的着.-This a very good game !!!!!!!!! hope it interested in working with comrades.
- 2022-03-17 14:55:44下载
- 积分: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