Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
hessamasna committed Jan 13, 2021
1 parent d59c5bd commit 4bc07a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/View/GameStartController.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ private void player1Attack(ActionEvent event) {
result = getBattleSeaController1().boomProcessor("player1",boom);
} catch (BattleShipWinner battleShipWinner) {
//todo Winner
Game.giveScoreAndEditPlayerLog(adminGeneralController.firstGameNameGetter(), BattleTestController.getPlayer1(), BattleTestController.getPlayer2(), getScore());

player1Error.setText("Empty Inputs");
player1Stat.setVisible(true);
player1Error.setVisible(true);
Expand Down Expand Up @@ -273,6 +275,8 @@ private void player2Attack(ActionEvent event) {
result = getBattleSeaController1().boomProcessor("player2",boom);
} catch (BattleShipWinner battleShipWinner) {
//todo Winner
Game.giveScoreAndEditPlayerLog(adminGeneralController.firstGameNameGetter(), BattleTestController.getPlayer2(), BattleTestController.getPlayer1(), getScore());

player2Error.setText("Empty Inputs");
player2Stat.setVisible(true);
player2Error.setVisible(true);
Expand Down

0 comments on commit 4bc07a6

Please sign in to comment.