static void Main(string[] args) { Game HiLowCard; HiLowCard = new Game(); HiLowCard.Start(); while (!HiLowCard.IsEnd()) { HiLowCard.Playing(); Console.WriteLine(">>>>>Press enter to play next turn..."); Console.ReadKey(); } Console.ReadKey(); }
static void Main(string[] args) { Game HLGame; string playagian = "n"; do { HLGame = new Game(); while (!HLGame.IsEnd()) { HLGame.Compared(); } Console.WriteLine(" ####################"); Console.WriteLine(" # PLAY AGIAN (y/n) #"); Console.Write(" #################### => "); playagian = Console.ReadLine(); } while (playagian == "Y" || playagian == "y"); }