Fix win/loss alert type
This commit is contained in:
parent
c8e84b8a79
commit
cfe68c0889
@ -54,9 +54,9 @@ public class GameCanvas extends Canvas {
|
||||
}
|
||||
if (game.isWon()) {
|
||||
winMessageShown = true;
|
||||
new Alert(Alert.AlertType.CONFIRMATION, "You won!").showAndWait();
|
||||
new Alert(Alert.AlertType.INFORMATION, "You won!").showAndWait();
|
||||
} else if (game.isLost()) {
|
||||
new Alert(Alert.AlertType.CONFIRMATION, "You lost!").showAndWait();
|
||||
new Alert(Alert.AlertType.INFORMATION, "You lost!").showAndWait();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user