Test this Vikram

This commit is contained in:
KahootChampion
2019-02-25 20:00:35 -07:00
parent 94762234af
commit 27ac100618
3 changed files with 85 additions and 23 deletions

View File

@@ -321,7 +321,10 @@ public class ShipWarfare extends Player {
delayForSeconds(2);
return true;
} else if (exitValue == 2) {
gameOver();
player.gameOver();
if(player.playAgain()){
setPlayer(new Player());
}
return true;
} else if (exitValue == 3) {
System.out.printf("We made it out at %d%% ship status!\n", player.getHP());