Skip to content

Instantly share code, notes, and snippets.

@gonaumov
Created September 13, 2020 22:06
package tictactoe;
public enum Messages {
ASK("Enter cells: "),
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("%s 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