If the player doesn't pick up the ak47 it still prints out that they win.
C#:
public static void Main()
{
Console.WriteLine("Welcome to my horror game: the super death scary monster of doooom");
Console.WriteLine("Once upon a time, a scary monster \n Yes or no?");
string userInput1 = Console.ReadLine();
bool ak47;
if (userInput1 == "Yes" || userInput1 == "yes")
{
Console.WriteLine("You picked up the ak47!");
ak47 = true;
}
else
{
Console.WriteLine("You didn't pick up the ak47");
ak47 = false;
}
Console.WriteLine("THE SUPER DEATH SCARY MONSTER OF DOOOOM IS ATTACKING YOUR CHICKENS!!! do you attack??");
string input2 = Console.ReadLine();
if (input2 == "yes" || input2 == "Yes" && ak47 == true)
{
Console.WriteLine("you whip out the blicky and blast that maamajaama in his scary monster balls");
Console.WriteLine("you win!");
}
else if (input2 == "yes" || input2 == "Yes" && ak47 == false)
{
Console.WriteLine("The super death scary monster of doom deflects your attack using wing chun and curses you with death doom and you die");
}
else
{
Console.WriteLine("yur chikens r dead");
}
}
}
Last edited by a moderator: