public void StartGame(Player player) { Console.Clear(); CurrentPlayer = player; CurrentPlayer.Inventory = new Dictionary <string, Item>(); timerSet = false; win = false; Setup(); // if (counter < 1) // { Help(); System.Console.WriteLine("Press enter to continue"); Console.ReadLine(); // } counter++; while (playing) { Console.Clear(); // System.Console.WriteLine(CurrentRoom.Description); CurrentRoom.ColoredDescription(this); if (CurrentRoom.Name == "Neighborhood") { win = true; break; } System.Console.WriteLine("\n\nWhat do you do?"); GetUserInput(); } if (!playing && !quit) { Thread.Sleep(5000); color.Red("\nYou got busted! Game Over.\n"); Thread.Sleep(1000); } if (win) { System.Console.WriteLine($"\n\nCongratulations {CurrentPlayer.PlayerName}! You Won!\n"); Thread.Sleep(3000); } System.Console.WriteLine("Do you want to play again? (Y/N)"); if (Console.ReadLine().ToLower().Contains("n")) { return; } playing = true; StartGame(CurrentPlayer); }
public void Look() { Console.Clear(); System.Console.WriteLine("You are now 'looking', though this isn't super necessary since you're always 'looking'.\n"); CurrentRoom.ColoredDescription(this); }