Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void EndGame()
- {
- Console.WriteLine("Do you want to play again? Enter button \"Y\" for yes and \"N\" for no :)");
- ConsoleKeyInfo endGameKey = Console.ReadKey();
- if (endGameKey.Key == ConsoleKey.Y)
- {
- Main();
- }
- if (endGameKey.Key == ConsoleKey.N)
- {
- System.Environment.Exit(0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement