文件名称:game_Majiang

  • 所属分类:
  • 棋牌游戏
  • 资源属性:
  • [C/C++] [Windows] [Visual C] [源码]
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 3.77mb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 杨*
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

用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 state (m_nState == 1) : If the computer Thinking the worst allow a licensing and out licensing, If people let their choice (no corresponding time card is automatically out just grasping the new licensing (m_nNewPai) ) 4. According to the player judged by licensing th
(系统自动生成,下载前可以参看下载内容)

下载文件列表

龚义__麻将游戏

..............\Mahjong

..............\.......\BasicThink.cpp

..............\.......\BasicThink.h

..............\.......\CleverThink.cpp

..............\.......\CleverThink.h

..............\.......\CmpThink.cpp

..............\.......\CmpThink.h

..............\.......\Mahjong.clw

..............\.......\Mahjong.cpp

..............\.......\Mahjong.dsp

..............\.......\Mahjong.dsw

..............\.......\Mahjong.exe

..............\.......\Mahjong.h

..............\.......\Mahjong.ncb

..............\.......\Mahjong.opt

..............\.......\Mahjong.plg

..............\.......\Mahjong.rc

..............\.......\MahjongDlg.cpp

..............\.......\MahjongDlg.h

..............\.......\MajHu.cpp

..............\.......\MajHu.h

..............\.......\ReadMe.txt

..............\.......\res



..............\.......\...\130.cur

..............\.......\...\arrow_im.cur



..............\.......\...\Mahjong.rc2







..............\.......\...\Title.bmp

..............\.......\...\背景.bmp

..............\.......\resource.h

..............\.......\Sounds

..............\.......\......\bg.mid

..............\.......\......\bg.wav

..............\.......\......\boy

..............\.......\......\...\1万.wav

..............\.......\......\...\1条.wav

..............\.......\......\...\1饼.wav

..............\.......\......\...\2万.wav

..............\.......\......\...\2条.wav

..............\.......\......\...\2饼.wav

..............\.......\......\...\3万.wav

..............\.......\......\...\3条.wav

..............\.......\......\...\3饼.wav

..............\.......\......\...\4万.wav

..............\.......\......\...\4条.wav

..............\.......\......\...\4饼.wav

..............\.......\......\...\5万.wav

..............\.......\......\...\5条.wav

..............\.......\......\...\5饼.wav

..............\.......\......\...\6万.wav

..............\.......\......\...\6条.wav

..............\.......\......\...\6饼.wav

..............\.......\......\...\7万.wav

..............\.......\......\...\7条.wav

..............\.......\......\...\7饼.wav

..............\.......\......\...\8万.wav

..............\.......\......\...\8条.wav

..............\.......\......\...\8饼.wav

..............\.......\......\...\9万.wav

..............\.......\......\...\9条.wav

..............\.......\......\...\9饼.wav

..............\.......\......\...\东风.wav

..............\.......\......\...\中.wav

..............\.......\......\...\北风.wav

..............\.......\......\...\南风.wav

..............\.......\......\...\发.wav

..............\.......\......\...\吃.wav

..............\.......\......\...\杠.wav

..............\.......\......\...\流局.wav

..............\.......\......\...\白.wav

..............\.......\......\...\碰.wav

..............\.......\......\...\胡.wav

..............\.......\......\...\补花.wav

..............\.......\......\...\西风.wav

..............\.......\......\button.wav

..............\.......\......\countfan.wav

..............\.......\......\deal.wav

..............\.......\......\dice.wav

..............\.......\......\draw.wav

..............\.......\......\girl

..............\.......\......\....\1万.wav

..............\.......\......\....\1条.wav

..............\.......\......\....\1饼.wav

..............\.......\......\....\2万.wav

..............\.......\......\....\2条.wav

..............\.......\......\....\2饼.wav

..............\.......\......\....\3万.wav

..............\.......\......\....\3条.wav

..............\.......\......\....\3饼.wav

..............\.......\......\....\4万.wav

..............\.......\......\....\4条.wav

..............\.......\......\....\4饼.wav

..............\.......\......\....\5万.wav

..............\.......\......\....\5条.wav

..............\.......\......\....\5饼.wav

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org