Skip to content

Commit

Permalink
end game updated
Browse files Browse the repository at this point in the history
  • Loading branch information
saygnpoyraz committed Dec 23, 2018
1 parent eff983d commit 2735ff0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/HangmanController.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ public void actionPerformed(ActionEvent arg0) {
System.out.println(guessWord);
if (model.getSecretWord().equals(guessWord)) {
view.winPopUp();
view.createEndGameScreen();
} else {
view.losePopUp();
view.createEndGameScreen();
}
}
});
Expand Down

0 comments on commit 2735ff0

Please sign in to comment.