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