Example #1
0
 //methods
 static void Main(string[] args)
 {
     //start gameloop
     while (true)
     {
         //create, initialise and start a new game object
         Game GameLogic = new Game();
         GameLogic.Initialise();
         GameLogic.Run();
         Console.WriteLine("Your score was {0}, want to play again? (Y/{1})", Game.score, SENTINAL.ToUpper());
         string PlayerInput = Console.ReadLine();
         if (PlayerInput.ToLower() == SENTINAL)
         {
             break;
         }
     }
 }