文件名称:doudizhu
- 所属分类:
- 棋牌游戏
- 资源属性:
- [Windows] [Visual.Net] [Basic/ASP] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 7.17mb
- 下载次数:
- 0次
- 提 供 者:
- 陈*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
斗地主源代码,绝对能通过的源码,有可执行文件
根据斗地主出牌规则.对玩家出的牌进行检验.判断是否符合出牌规则.
(关于斗地主的出牌规则网上有很多)
思路:将玩家的牌按升序排序.然后将牌进行拆分,分存在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+
根据斗地主出牌规则.对玩家出的牌进行检验.判断是否符合出牌规则.
(关于斗地主的出牌规则网上有很多)
思路:将玩家的牌按升序排序.然后将牌进行拆分,分存在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
........\...\.....\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