Skip to content

jcjr30/java-tictactoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Command Line Interface Tic-Tac-Toe,

-May be ran in your Java compiler of choice, or via CMD with the .jar file

Rules/Features:

-Player 'X' will always go first

-Coordinates must be input on seperate lines and x coordinates always go before y, for example
1 (enter)
2 (enter)
will result in a X/O being placed in the middle left position

-Coordinate Structure
(1,1) | (2,1) | (3,1)
(1,2) | (2,2) | (3,2)
(1,3) | (2,3) | (3,3)

-Tracks and displays player wins, prompts player to reset the board or quit ('q') after a win

-Checks for a tie (only returns true if board is full), then resets the board for another round

-Will not allow for an X/O to be overwritten, for example, if position (1,2) contains an 'X'
then player 'O' tries to place an 'O' in that position, the game will prompt player 'O' to
try another location

-This is my first mostly complete coding project, I am aware of the following bugs:
-Ignores/Skips a player's move if an integer besides 1,2,3 is input
-Crashes if anything but an integer is input when the game asks for coordinates

About

A java CLI tic-tac-toe game.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages