Game states
bool gameContinues = true;
int currentRoom = 0;
while (gameContinues == true)
{
if (currentRoom == 0)
{
Console.WriteLine("You are in room #0. Go to which room?");
string whatRoom = Console.ReadLine();
if (whatRoom == "1")
{
currentRoom = 1;
}
}
else if (currentRoom == 1)
{
// Kod för rum 1
}
else if (currentRoom == 2)
{
// Kod för rum 2
}
}Last updated