private string _lastCard = ""; //上一張被丟出的牌 static void Main(string[] args) { Client program = new Client(); program.CreateDictionary(); //建立字典 program.Connect(); //連線到server while (true) { while (!program._gameOver) { program.Assignment(program.Receive()); } Console.WriteLine("本局結束,莊家換人,開始下一場\n"); program._position = -1; program._playerNow = 1; program._lastCard = ""; program._gameOver = false; program._handCard = null; } }