static string inventory = "";
public static void Game()
Console.WriteLine("You're in a room with a chair and a window. What do you do=");
Console.WriteLine("You're in a room with a chair and a window. What do you do?");
string input = Console.ReadLine();
if(input == "take chair")
Console.WriteLine("You take the chair");
Console.WriteLine("Your inventory: " + inventory);
if(input == "throw chair" && inventory == "chair")
Console.WriteLine("You break the window.");
public static void Main()
while(completed == false)