Ejemplo n.º 1
0
 public void EndTurn()
 {
     if (turnCount % 2 == 0) //turn player1
     {
         Console.WriteLine(player1.UserName + " choose coordinate and attack");
         Player2.Attacked(Player1.Attack());
         DrawMaps();
     }
     else  //turn player2
     {
         DrawMaps();
         Console.WriteLine(player2.UserName + " choose coordinate and attack");
         Player1.Attacked(Player2.Attack());
         DrawMaps();
     }
     Console.WriteLine("press enter for other turn");
     Console.ReadLine();
     turnCount++;
 }