文件名称:doudizhu
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小: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
doudizhu/bin/Debug/AxInterop.WMPLib.dll
doudizhu/bin/Debug/Interop.FlashAccessibility.dll
doudizhu/bin/Debug/Interop.ShockwaveFlashObjects.dll
doudizhu/bin/Debug/Interop.WMPLib.dll
doudizhu/bin/Debug/IrisSkin2.dll
doudizhu/bin/Debug/Longhorn.ssk
doudizhu/bin/Debug/mf_001.swf
doudizhu/bin/Debug/QQ-Boy/Thumbs.db
doudizhu/bin/Debug/QQ-Boy/做事.gif
doudizhu/bin/Debug/QQ-Boy/喝酒.gif
doudizhu/bin/Debug/QQ-Boy/嘻哈.gif
doudizhu/bin/Debug/QQ-Boy/大侠.gif
doudizhu/bin/Debug/QQ-Boy/奔跑.gif
doudizhu/bin/Debug/QQ-Boy/学习.gif
doudizhu/bin/Debug/QQ-Boy/想你.gif
doudizhu/bin/Debug/QQ-Boy/放电.gif
doudizhu/bin/Debug/QQ-Boy/漫步.gif
doudizhu/bin/Debug/QQ-Boy/甜蜜.gif
doudizhu/bin/Debug/QQ-Boy/男.gif
doudizhu/bin/Debug/QQ-Boy/睡觉.gif
doudizhu/bin/Debug/QQ-Boy/瞌睡.gif
doudizhu/bin/Debug/QQ-Boy/笑.gif
doudizhu/bin/Debug/QQ-Boy/跑.gif
doudizhu/bin/Debug/QQ-Boy/运动.gif
doudizhu/bin/Debug/QQ-Boy/逗.gif
doudizhu/bin/Debug/QQ-Boy/钓鱼.gif
doudizhu/bin/Debug/QQ-Girl/Thumbs.db
doudizhu/bin/Debug/QQ-Girl/唱.gif
doudizhu/bin/Debug/QQ-Girl/喝水.gif
doudizhu/bin/Debug/QQ-Girl/嘻哈.gif
doudizhu/bin/Debug/QQ-Girl/女.gif
doudizhu/bin/Debug/QQ-Girl/学习.gif
doudizhu/bin/Debug/QQ-Girl/溜.gif
doudizhu/bin/Debug/Working.ani
doudizhu/bin/Debug/冰.ani
doudizhu/bin/Debug/斗地主.application
doudizhu/bin/Debug/斗地主.duo
doudizhu/bin/Debug/斗地主.exe
doudizhu/bin/Debug/斗地主.exe.manifest
doudizhu/bin/Debug/斗地主.pdb
doudizhu/bin/Debug/斗地主.vshost.application
doudizhu/bin/Debug/斗地主.vshost.exe
doudizhu/bin/Debug/斗地主.vshost.exe.manifest
doudizhu/C#斗地主算法.doc
doudizhu/Chupai.cs
doudizhu/ComputerChuPai.cs
doudizhu/DdzMian.cs
doudizhu/DdzMian.Designer.cs
doudizhu/DdzMian.resx
doudizhu/Form1.cs
doudizhu/Form1.Designer.cs
doudizhu/Form1.resx
doudizhu/Form2.cs
doudizhu/Form2.Designer.cs
doudizhu/Form2.resx
doudizhu/Form3.cs
doudizhu/Form3.Designer.cs
doudizhu/Form3.resx
doudizhu/from.gif
doudizhu/GameOver.cs
doudizhu/GameOver.Designer.cs
doudizhu/GameOver.resx
doudizhu/Jiepai.cs
doudizhu/JueSe.cs
doudizhu/KaiJu.cs
doudizhu/obj/Debug/AxInterop.ShockwaveFlashObjects.dll
doudizhu/obj/Debug/AxInterop.WMPLib.dll
doudizhu/obj/Debug/Interop.FlashAccessibility.dll
doudizhu/obj/Debug/Interop.MediaPlayer.dll
doudizhu/obj/Debug/Interop.ShockwaveFlashObjects.dll
doudizhu/obj/Debug/Interop.WMPLib.dll
doudizhu/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
doudizhu/obj/Debug/斗地主.application
doudizhu/obj/Debug/斗地主.csproj.GenerateResource.Cache
doudizhu/obj/Debug/斗地主.csproj.ResolveComReference.cache
doudizhu/obj/Debug/斗地主.DdzMian.resources
doudizhu/obj/Debug/斗地主.exe
doudizhu/obj/Debug/斗地主.exe.manifest
doudizhu/obj/Debug/斗地主.Form2.resources
doudizhu/obj/Debug/斗地主.Form3.resources
doudizhu/obj/Debug/斗地主.GameOver.resources
doudizhu/obj/Debug/斗地主.pdb
doudizhu/obj/Debug/斗地主.Properties.Resources.resources
doudizhu/obj/Debug/斗地主.Resources.背面.jpg
doudizhu/obj/Debug/斗地主.YiChuPai.resources
doudizhu/obj/斗地主.csproj.FileList.txt
doudizhu/obj/斗地主.csproj.FileListAbsolute.txt
doudizhu/Player.cs
doudizhu/Program.cs
doudizhu/Properties/AssemblyInfo.cs
doudizhu/Properties/Resources.Designer.cs
doudizhu/Properties/Resources.resx
doudizhu/Properties/Settings.Designer.cs
doudizhu/Properties/Settings.settings
doudizhu/Puke.cs
doudizhu/Resources/(^o^) (81).jpg
doudizhu/Resources/b55d72f72e7b832c720eecd3.jpg
doudizhu/Resources/pukeImage1/1.jpg
doudizhu/Resources/pukeImage1/10.jpg
doudizhu/Resources/pukeImage1/11.jpg
doudizhu/Resources/pukeImage1/12.jpg
doudizhu/Resources/pukeImage1/13.jpg
doudizhu/Resources/pukeImage1/14.jpg
doudizhu/Resources/pukeImage1/15.jpg
doudizhu/Resources/pukeImage1/16.jpg
doudizhu/Resources/pukeImage1/17.jpg
doudizhu/Resources/pukeImage1/18.jpg
doudizhu/Resources/pukeImage1/19.jpg
doudizhu/Resources/pukeImage1/2.jpg
doudizhu/Resources/pukeImage1/20.jpg
doudizhu/Resources/pukeImage1/21.jpg
doudizhu/Resources/pukeImage1/22.jpg
doudizhu/Resources/pukeImage1/23.jpg
doudizhu/Resources/pukeImage1/24.jpg
doudizhu/Resources/pukeImage1/25.jpg
doudizhu/Resources/pukeImage1/26.jpg
doudizhu/Resources/pukeImage1/27.jpg
doudizhu/Resources/pukeImage1/28.jpg
doudizhu/Resources/pukeImage1/29.jpg
doudizhu/Resources/pukeImage1/3.jpg
doudizhu/Resources/pukeImage1/30.jpg
doudizhu/Resources/pukeImage1/31.jpg
doudizhu/Resources/pukeImage1/32.jpg
doudizhu/Resources/pukeImage1/33.jpg
doudizhu/Resources/pukeImage1/34.jpg
doudizhu/Resources/pukeImage1/35.jpg
doudizhu/Resources/pukeImage1/36.jpg
doudizhu/Resources/pukeImage1/37.jpg
doudizhu/Resources/pukeImage1/38.jpg
doudizhu/Resources/pukeImage1/39.jpg
doudizhu/Resources/pukeImage1/4.jpg
doudizhu/Resources/pukeImage1/40.jpg
doudizhu/Resources/pukeImage1/41.jpg
doudizhu/Resources/pukeImage1/42.jpg
doudizhu/Resources/pukeImage1/43.jpg
doudizhu/Resources/pukeImage1/44.jpg
doudizhu/Resources/pukeImage1/45.jpg
doudizhu/Resources/pukeImage1/46.jpg
doudizhu/Resources/pukeImage1/47.jpg
doudizhu/Resources/pukeImage1/48.jpg
doudizhu/Resources/pukeImage1/49.jpg
doudizhu/Resources/pukeImage1/5.jpg
doudizhu/Resources/pukeImage1/50.jpg
doudizhu/Resources/pukeImage1/51.jpg
doudizhu/Resources/pukeImage1/52.jpg
doudizhu/Resources/pukeImage1/53.jpg
doudizhu/Resources/pukeIm
doudizhu/bin/Debug/AxInterop.WMPLib.dll
doudizhu/bin/Debug/Interop.FlashAccessibility.dll
doudizhu/bin/Debug/Interop.ShockwaveFlashObjects.dll
doudizhu/bin/Debug/Interop.WMPLib.dll
doudizhu/bin/Debug/IrisSkin2.dll
doudizhu/bin/Debug/Longhorn.ssk
doudizhu/bin/Debug/mf_001.swf
doudizhu/bin/Debug/QQ-Boy/Thumbs.db
doudizhu/bin/Debug/QQ-Boy/做事.gif
doudizhu/bin/Debug/QQ-Boy/喝酒.gif
doudizhu/bin/Debug/QQ-Boy/嘻哈.gif
doudizhu/bin/Debug/QQ-Boy/大侠.gif
doudizhu/bin/Debug/QQ-Boy/奔跑.gif
doudizhu/bin/Debug/QQ-Boy/学习.gif
doudizhu/bin/Debug/QQ-Boy/想你.gif
doudizhu/bin/Debug/QQ-Boy/放电.gif
doudizhu/bin/Debug/QQ-Boy/漫步.gif
doudizhu/bin/Debug/QQ-Boy/甜蜜.gif
doudizhu/bin/Debug/QQ-Boy/男.gif
doudizhu/bin/Debug/QQ-Boy/睡觉.gif
doudizhu/bin/Debug/QQ-Boy/瞌睡.gif
doudizhu/bin/Debug/QQ-Boy/笑.gif
doudizhu/bin/Debug/QQ-Boy/跑.gif
doudizhu/bin/Debug/QQ-Boy/运动.gif
doudizhu/bin/Debug/QQ-Boy/逗.gif
doudizhu/bin/Debug/QQ-Boy/钓鱼.gif
doudizhu/bin/Debug/QQ-Girl/Thumbs.db
doudizhu/bin/Debug/QQ-Girl/唱.gif
doudizhu/bin/Debug/QQ-Girl/喝水.gif
doudizhu/bin/Debug/QQ-Girl/嘻哈.gif
doudizhu/bin/Debug/QQ-Girl/女.gif
doudizhu/bin/Debug/QQ-Girl/学习.gif
doudizhu/bin/Debug/QQ-Girl/溜.gif
doudizhu/bin/Debug/Working.ani
doudizhu/bin/Debug/冰.ani
doudizhu/bin/Debug/斗地主.application
doudizhu/bin/Debug/斗地主.duo
doudizhu/bin/Debug/斗地主.exe
doudizhu/bin/Debug/斗地主.exe.manifest
doudizhu/bin/Debug/斗地主.pdb
doudizhu/bin/Debug/斗地主.vshost.application
doudizhu/bin/Debug/斗地主.vshost.exe
doudizhu/bin/Debug/斗地主.vshost.exe.manifest
doudizhu/C#斗地主算法.doc
doudizhu/Chupai.cs
doudizhu/ComputerChuPai.cs
doudizhu/DdzMian.cs
doudizhu/DdzMian.Designer.cs
doudizhu/DdzMian.resx
doudizhu/Form1.cs
doudizhu/Form1.Designer.cs
doudizhu/Form1.resx
doudizhu/Form2.cs
doudizhu/Form2.Designer.cs
doudizhu/Form2.resx
doudizhu/Form3.cs
doudizhu/Form3.Designer.cs
doudizhu/Form3.resx
doudizhu/from.gif
doudizhu/GameOver.cs
doudizhu/GameOver.Designer.cs
doudizhu/GameOver.resx
doudizhu/Jiepai.cs
doudizhu/JueSe.cs
doudizhu/KaiJu.cs
doudizhu/obj/Debug/AxInterop.ShockwaveFlashObjects.dll
doudizhu/obj/Debug/AxInterop.WMPLib.dll
doudizhu/obj/Debug/Interop.FlashAccessibility.dll
doudizhu/obj/Debug/Interop.MediaPlayer.dll
doudizhu/obj/Debug/Interop.ShockwaveFlashObjects.dll
doudizhu/obj/Debug/Interop.WMPLib.dll
doudizhu/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
doudizhu/obj/Debug/斗地主.application
doudizhu/obj/Debug/斗地主.csproj.GenerateResource.Cache
doudizhu/obj/Debug/斗地主.csproj.ResolveComReference.cache
doudizhu/obj/Debug/斗地主.DdzMian.resources
doudizhu/obj/Debug/斗地主.exe
doudizhu/obj/Debug/斗地主.exe.manifest
doudizhu/obj/Debug/斗地主.Form2.resources
doudizhu/obj/Debug/斗地主.Form3.resources
doudizhu/obj/Debug/斗地主.GameOver.resources
doudizhu/obj/Debug/斗地主.pdb
doudizhu/obj/Debug/斗地主.Properties.Resources.resources
doudizhu/obj/Debug/斗地主.Resources.背面.jpg
doudizhu/obj/Debug/斗地主.YiChuPai.resources
doudizhu/obj/斗地主.csproj.FileList.txt
doudizhu/obj/斗地主.csproj.FileListAbsolute.txt
doudizhu/Player.cs
doudizhu/Program.cs
doudizhu/Properties/AssemblyInfo.cs
doudizhu/Properties/Resources.Designer.cs
doudizhu/Properties/Resources.resx
doudizhu/Properties/Settings.Designer.cs
doudizhu/Properties/Settings.settings
doudizhu/Puke.cs
doudizhu/Resources/(^o^) (81).jpg
doudizhu/Resources/b55d72f72e7b832c720eecd3.jpg
doudizhu/Resources/pukeImage1/1.jpg
doudizhu/Resources/pukeImage1/10.jpg
doudizhu/Resources/pukeImage1/11.jpg
doudizhu/Resources/pukeImage1/12.jpg
doudizhu/Resources/pukeImage1/13.jpg
doudizhu/Resources/pukeImage1/14.jpg
doudizhu/Resources/pukeImage1/15.jpg
doudizhu/Resources/pukeImage1/16.jpg
doudizhu/Resources/pukeImage1/17.jpg
doudizhu/Resources/pukeImage1/18.jpg
doudizhu/Resources/pukeImage1/19.jpg
doudizhu/Resources/pukeImage1/2.jpg
doudizhu/Resources/pukeImage1/20.jpg
doudizhu/Resources/pukeImage1/21.jpg
doudizhu/Resources/pukeImage1/22.jpg
doudizhu/Resources/pukeImage1/23.jpg
doudizhu/Resources/pukeImage1/24.jpg
doudizhu/Resources/pukeImage1/25.jpg
doudizhu/Resources/pukeImage1/26.jpg
doudizhu/Resources/pukeImage1/27.jpg
doudizhu/Resources/pukeImage1/28.jpg
doudizhu/Resources/pukeImage1/29.jpg
doudizhu/Resources/pukeImage1/3.jpg
doudizhu/Resources/pukeImage1/30.jpg
doudizhu/Resources/pukeImage1/31.jpg
doudizhu/Resources/pukeImage1/32.jpg
doudizhu/Resources/pukeImage1/33.jpg
doudizhu/Resources/pukeImage1/34.jpg
doudizhu/Resources/pukeImage1/35.jpg
doudizhu/Resources/pukeImage1/36.jpg
doudizhu/Resources/pukeImage1/37.jpg
doudizhu/Resources/pukeImage1/38.jpg
doudizhu/Resources/pukeImage1/39.jpg
doudizhu/Resources/pukeImage1/4.jpg
doudizhu/Resources/pukeImage1/40.jpg
doudizhu/Resources/pukeImage1/41.jpg
doudizhu/Resources/pukeImage1/42.jpg
doudizhu/Resources/pukeImage1/43.jpg
doudizhu/Resources/pukeImage1/44.jpg
doudizhu/Resources/pukeImage1/45.jpg
doudizhu/Resources/pukeImage1/46.jpg
doudizhu/Resources/pukeImage1/47.jpg
doudizhu/Resources/pukeImage1/48.jpg
doudizhu/Resources/pukeImage1/49.jpg
doudizhu/Resources/pukeImage1/5.jpg
doudizhu/Resources/pukeImage1/50.jpg
doudizhu/Resources/pukeImage1/51.jpg
doudizhu/Resources/pukeImage1/52.jpg
doudizhu/Resources/pukeImage1/53.jpg
doudizhu/Resources/pukeIm
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.