-
用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
-
这个程序也是对编程基本功的一个训练,对于初学C语言的人,将分支,循环,数组,函数综合应用....
这个程序也是对编程基本功的一个训练,对于初学C语言的人,将分支,循环,数组,函数综合应用.-the process of programming is a basic skills training for the C language learning, to branch cycle, arrays, function integrated application.
- 2023-04-01 19:45:04下载
- 积分:1
-
俄罗斯方块源程序,参照了我从网上下载的游戏方块设计.在游戏中,加了很多注释,以方便理解,主要的代码都在CChileView.h、CChileView.CPP中....
俄罗斯方块源程序,参照了我从网上下载的游戏方块设计.在游戏中,加了很多注释,以方便理解,主要的代码都在CChileView.h、CChileView.CPP中.-Tetris source code, in the light of what I downloaded from the Internet game box design. In the game, plus a lot of notes to facilitate understanding, the main code are CChileView.h, CChileView.CPP in.
- 2022-05-28 23:33:24下载
- 积分:1
-
黑白棋游戏源代码
黑白棋游戏源代码-source code
- 2022-12-08 11:10:03下载
- 积分:1
-
源与俄罗斯的箱流程图设计
VC俄罗斯方块源码和流程图设计。开发者刘林namesliu@sina.com
-VC source and the Russian box flowchart design
- 2022-03-16 13:16:54下载
- 积分:1
-
简单的斗地主源代码,也可以局域网和朋友一起玩哦
简单的斗地主源代码,也可以局域网和朋友一起玩哦-simple source code, you can play LAN with friends Oh
- 2022-12-13 17:10:03下载
- 积分:1
-
五子棋的源代码,可用直接编译运行,VC++下开发,运用AI算法...
五子棋的源代码,可用直接编译运行,VC++下开发,运用AI算法-the source code about Godong , can be directly compled to run, make use of AI algorithms
- 2022-02-02 20:49:57下载
- 积分:1
-
一个国际象棋游戏,用java开发的,好玩的
利用JAVA开发的一个国际象棋游戏,很好玩的-use JAVA development of an international chess game, the fun
- 2022-06-03 14:16:08下载
- 积分:1
-
五子棋游戏,可以人机对战,可以网上对战
五子棋游戏,可以人机对战,可以网上对战-Five in a Row games, it can play between person and machines or through internent
- 2022-11-21 12:50:03下载
- 积分:1
-
游戏大厅,C#写的
,强大的AI人工智能设计,并提供了机器人的难度、战术风格等参数调节,使得游戏运营不但可以采用多人网络对战,还可以使用人机对战
优秀的...
游戏大厅,C#写的
,强大的AI人工智能设计,并提供了机器人的难度、战术风格等参数调节,使得游戏运营不但可以采用多人网络对战,还可以使用人机对战
优秀的线程处理,精妙的游戏算法,平滑的异步通讯......极大地提高服务端性能,使得服务端能够达到最大的负载量
强大的游戏大厅设计,可以任意设置房间,牌桌,游戏规则,人数限制,强退惩罚......
强大的服务端设计,可以任意设置各项参数,监控游戏全局,查看机器人状态。-games hall, and C# to write and powerful AI Artificial Intelligence design, and provide a robot difficult, tactical style parameter adjustment, the operation not only makes the game can be used over the network war. can also use man-machine war excellent thread, exquisite algorithm of the game, Smoothing the asynchronous communication ...... greatly improve server performance, service makes it possible to reach the largest load powerful design of the game hall, which could be set up rooms, majiang apparatus, the rules of the game. limit the number of strong withdrawal penalties ...... powerful server design, which could be set up parameters, control the game overall, View robot.
- 2022-01-26 08:06:10下载
- 积分:1