Created
September 13, 2020 22:06
-
-
Save gonaumov/3000559f4a04f08764a2dd24aed1c892 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("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