文件名称:C#随机发牌实例
文件大小:284KB
文件格式:RAR
更新时间:2020-12-21 14:59:23
发牌实例
string[] kind = { "2", "3", "1", "4" }; string[] code = { "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12", "-13", "-1", "-2" }; string[] pai = new string[54]; int k = 0; for (int i = 0; i < code.Length; i++) { for (int j = 0; j < kind.Length; j++) { pai[k] = kind[j] + code[i]; k++; } } pai[52] = "5-1"; pai[53] = "5-2"; // String[] pai = {"红桃3","黑桃3","梅花3","方块3","红桃4","黑桃4","梅花4","方块4","红桃5","黑桃5","梅花5","方块5","红桃6","黑桃6","梅花6","方块6","红桃7","黑桃7","梅花7","方块7","红桃8","黑桃8","梅花8","方块8","红桃9","黑桃9","梅花9","方块9","红桃10","黑桃10","梅花10","方块10","红桃J","黑桃J","梅花J","方块J","红桃Q","黑桃Q","梅花Q","方块Q","红桃K","黑桃K","梅花K","方块K","红桃A","黑桃A","梅花A","方块A","红桃2","黑桃2","梅花2","方块2","大王","小王"}; int[] wanjia1 = new int[17]; int[] wanjia2 = new int[17]; int[] wanjia3 = new int[17]; int[] dipai = new int[3]; string[] Users1 = new string[17]; string[] Users2 = new string[17]; string[] Users3 = new string[17]; string[] dipaiG = new string[3]; Random rd = new Random(); int[] pokecount = new int[54]; 。。。。。。。。。
【文件预览】:
demo
----demo.suo(17KB)
----demo.sln(905B)
----fapai()
--------bin()
--------Form1.Designer.cs(2KB)
--------Program.cs(486B)
--------obj()
--------fapai.csproj(4KB)
--------Form1.cs(8KB)
--------Form1.resx(6KB)
--------Properties()