Skip to content

Instantly share code, notes, and snippets.

@gonaumov
Created September 13, 2020 22:15
Show Gist options
  • Save gonaumov/11fca65bc69aba361a2008797162ae51 to your computer and use it in GitHub Desktop.
Save gonaumov/11fca65bc69aba361a2008797162ae51 to your computer and use it in GitHub Desktop.
package tictactoe;
public enum Messages {
ASK_COORDINATES("Enter the coordinates: "),
ERROR_ONLY_NUMBERS("You should enter numbers!"),
ERROR_INCORRECT_RANGE("Coordinates should be from 1 to 3!"),
ERROR_OCCUPIED_CELL("This cell is occupied! Choose another one!"),
NOT_FINISHED("Game not finished"),
DRAW("Draw"),
WINNER_X("X wins"),
WINNER_O("O wins"),
IMPOSSIBLE("Impossible");
String message;
Messages(String message) {
this.message = message;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment