文件名称:doudizhu

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

斗地主源代码,绝对能通过的源码,有可执行文件



根据斗地主出牌规则.对玩家出的牌进行检验.判断是否符合出牌规则.

(关于斗地主的出牌规则网上有很多)

思路:将玩家的牌按升序排序.然后将牌进行拆分,分存在4个数组中.拆分规则如下:

假设有牌:333\444\555\789

则拆分后数组中的数据如下

arr[0]:345789

arr[1]:345

arr[2]:345

arr[3]:null

可以看出拆分规则是:如果遇到相同数字的牌则存到下一个数组的末尾.

拆分完后可以根据各数组的存储情况判定玩家出牌的类型,上面例子arr[3]为空.可以排除掉4带1(2).炸弹.的情况根据arr[2]为顺子且个数大于1,且arr[2]中存放的牌的张数乘以3刚好等于arr[0]的张数+arr[1]的张数.则可以判定是三带一的飞机.其他类型的牌也有相似的规律.以下是该算法的核心源代码.本算法用C#编写. -Landlords source code is absolutely through the source code, executable file



Landlords the cards according to the rules. For players to test out the cards. To determine whether the cards rules.

(Landlords of the cards on the Internet there are many rules)

Ideas: the player s cards in ascending order and then split the cards, there are four sub-array. Splitting rules are as follows:

Suppose card: 333 \ 444 \ 555 \ 789

After the array is split as follows

arr [0]: 345789

arr [1]: 345

arr [2]: 345

arr [3]: null

It can be seen splitting rule is: If you encounter the same number of cards is saved to the end of the next array.

After splitting the array according to the storage of the cards to determine the type of player, the above example, arr [3] is empty can be ruled out with 4

1 (2) bomb case according to arr [2] for the straight and the number is greater than 1 and arr [2] in the number of cards stored is exactly equal to 3 times

arr [0] the number of sheets+
相关搜索: 斗地主

(系统自动生成,下载前可以参看下载内容)

下载文件列表

doudizhu\bin\Debug\AxInterop.ShockwaveFlashObjects.dll

........\...\.....\AxInterop.WMPLib.dll

........\...\.....\Interop.FlashAccessibility.dll

........\...\.....\Interop.ShockwaveFlashObjects.dll

........\...\.....\Interop.WMPLib.dll

........\...\.....\IrisSkin2.dll

........\...\.....\Longhorn.ssk

........\...\.....\mf_001.swf

........\...\.....\QQ-Boy\Thumbs.db

........\...\.....\......\做事.gif

........\...\.....\......\喝酒.gif

........\...\.....\......\嘻哈.gif

........\...\.....\......\大侠.gif

........\...\.....\......\奔跑.gif

........\...\.....\......\学习.gif

........\...\.....\......\想你.gif

........\...\.....\......\放电.gif

........\...\.....\......\漫步.gif

........\...\.....\......\甜蜜.gif

........\...\.....\......\男.gif

........\...\.....\......\睡觉.gif

........\...\.....\......\瞌睡.gif

........\...\.....\......\笑.gif

........\...\.....\......\跑.gif

........\...\.....\......\运动.gif

........\...\.....\......\逗.gif

........\...\.....\......\钓鱼.gif

........\...\.....\...Girl\Thumbs.db

........\...\.....\.......\唱.gif

........\...\.....\.......\喝水.gif

........\...\.....\.......\嘻哈.gif

........\...\.....\.......\女.gif

........\...\.....\.......\学习.gif

........\...\.....\.......\溜.gif

........\...\.....\Working.ani

........\...\.....\冰.ani

........\...\.....\斗地主.application

........\...\.....\斗地主.duo

........\...\.....\斗地主.exe

........\...\.....\斗地主.exe.manifest

........\...\.....\斗地主.pdb

........\...\.....\斗地主.vshost.application

........\...\.....\斗地主.vshost.exe

........\...\.....\斗地主.vshost.exe.manifest

........\C#斗地主算法.doc

........\Chupai.cs

........\ComputerChuPai.cs

........\DdzMian.cs

........\DdzMian.Designer.cs

........\DdzMian.resx

........\Form1.cs

........\Form1.Designer.cs

........\Form1.resx

........\Form2.cs

........\Form2.Designer.cs

........\Form2.resx

........\Form3.cs

........\Form3.Designer.cs

........\Form3.resx

........\GameOver.cs

........\GameOver.Designer.cs

........\GameOver.resx

........\Jiepai.cs

........\JueSe.cs

........\KaiJu.cs

........\obj\Debug\AxInterop.ShockwaveFlashObjects.dll

........\...\.....\AxInterop.WMPLib.dll

........\...\.....\Interop.FlashAccessibility.dll

........\...\.....\Interop.MediaPlayer.dll

........\...\.....\Interop.ShockwaveFlashObjects.dll

........\...\.....\Interop.WMPLib.dll

........\...\.....\TempPE\Properties.Resources.Designer.cs.dll

........\...\.....\斗地主.application

........\...\.....\斗地主.csproj.GenerateResource.Cache

........\...\.....\斗地主.csproj.ResolveComReference.cache

........\...\.....\斗地主.DdzMian.resources

........\...\.....\斗地主.exe

........\...\.....\斗地主.exe.manifest

........\...\.....\斗地主.Form2.resources

........\...\.....\斗地主.Form3.resources

........\...\.....\斗地主.GameOver.resources

........\...\.....\斗地主.pdb

........\...\.....\斗地主.Properties.Resources.resources

........\...\.....\斗地主.Resources.背面.jpg

........\...\.....\斗地主.YiChuPai.resources

........\...\斗地主.csproj.FileList.txt

........\...\斗地主.csproj.FileListAbsolute.txt

........\Player.cs

........\Program.cs

........\...perties\AssemblyInfo.cs

........\..........\Resources.Designer.cs

........\..........\Resources.resx

........\..........\Settings.Designer.cs

........\..........\Settings.settings

........\Puke.cs

........\Resources\(^o^) (81).jpg

........\.........\b55d72f72e7b832c720eecd3.jpg

........\.........\pukeImage1\1.jpg

........\.........\..........\10.jpg

........\.........\..........\11.jpg

相关说明

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

相关评论

暂无评论内容.

发表评论

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

源码中国 www.ymcn.org