Skip to content

wind0124003/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A tic tac toe game (text mode)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages