A tic tac toe game by text mode, developed by Java.
Rules of this game as the same as the tic tac toe game. Two players take turns marking the spaces in a three-by-three grid with X or O. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.
When entering the game, you will get the message.
The number range of row and column is from 0 to 2. column | 0 | 1 | 2 | row |0| |1| |2|
After inputting row number and column number, the program will validate the input. If the input is invalid, a warning message will prompt.
If the input is valid, a mark will be placed in the specific grid according to the inputted instruction.
This game will finish until a player wins or they are drawn.
Result 1: one player wins.
Result 2: players draw.