Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.54 KB

README.md

File metadata and controls

40 lines (24 loc) · 1.54 KB

Tic-Tac-Toe

A tic tac toe game by text mode, developed by Java.

Rlue of the game

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.

Start the game

When entering the game, you will get the message.

image

The number range of row and column is from 0 to 2. column | 0 | 1 | 2 | row |0| |1| |2|

During the game

After inputting row number and column number, the program will validate the input. If the input is invalid, a warning message will prompt.

image

If the input is valid, a mark will be placed in the specific grid according to the inputted instruction.

image

Finish the game

This game will finish until a player wins or they are drawn.

Result 1: one player wins.

image

Result 2: players draw.

image