Esempio n. 1
0
 public static void PlayersShoot(PlayerBoard playerBoard, EnemyBoard enemyBoard)
 {
     playerBoard.EnemyShoots(playerBoard);
     enemyBoard.ShootEnemy(enemyBoard);
 }
Esempio n. 2
0
 public static bool IsGameOver(PlayerBoard playerBoard, EnemyBoard enemyBoard)
 {
     return(playerBoard.LostAllFleet() || enemyBoard.LostAllFleet());
 }
Esempio n. 3
0
 public static void RedrawBoards(PlayerBoard playerBoard, EnemyBoard enemyBoard)
 {
     Console.Clear();
     playerBoard.DrawBoard();
     enemyBoard.DrawBoard();
 }