Added GameOver() Method to Player class, btw System.out.flush just straight up Thanos's the terminal at the time (clears it).

This commit is contained in:
KahootChampion
2019-02-18 22:50:24 -07:00
parent fe03244b6c
commit 6c36073e87
2 changed files with 5 additions and 4 deletions

View File

@@ -108,4 +108,9 @@ public class Player {
this.guns = guns;
}
}
public void gameOver() {
System.out.flush();
System.out.println("Game over");
}
}

View File

@@ -49,10 +49,6 @@ public class ShipWarfare extends Player {
TimeUnit.SECONDS.sleep(1);
}
public void gameOver() {
System.out.flush();
System.out.println("Game over");
}
public int numOfShips() {