Created
September 13, 2020 22:15
-
-
Save gonaumov/11fca65bc69aba361a2008797162ae51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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