创建一副牌
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace 斗地主终端模式
{
class CreatePai
{
public string[] CreatePaiFunc()
{
char[] P1 = {
'红', '黑', '梅', '方' };
string[] P2 = {
"03", "04", "05", "06", "07", "08", "09", "10", "J", "Q", "K", "A", "02" };
string[] P3 = new string[54];
string tmp = null;
int i = 0;
foreach (char p1 in P1)
{
foreach (string p2 in P2)
{
tmp = p1.ToString() + p2;
P3[i] = tmp;
tmp = null;
i++;
}
}
P3[i] = "大王"