Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     int n = 10;
     Console.Write("Welcome to \"Battle Field\" game.\nEnter battle type size: n = ");
     int.TryParse(Console.ReadLine(), out n);
     while (n < 1 || n > 10)
     {
         Console.Write("n is between 1 and 10! Please enter new n = ");
         int.TryParse(Console.ReadLine(), out n);
     }
     GameEngine gamePlay = new GameEngine(n);
     gamePlay.MakeATurn();
 }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     GameEngine gamePlay = new GameEngine();
     gamePlay.InitiateGame();
 }