This is a simple command-line Tic-Tac-Toe game implemented in Java.
-
Clone the repository to your local machine using the following command:
git clone https://github.com/Sahaj19/XOX.git
-
Navigate to the directory containing the cloned repository:
cd XOX
-
Compile the Java program:
javac Main.java
-
Run the game:
java Main
-
Follow the on-screen instructions to play the game. Players take turns entering row and column numbers to place their respective symbols ('X' or 'O') on the 3x3 grid.
-
The game will continue until one player wins or the game ends in a draw.
-
To exit the game at any time, press
Ctrl + C
or close the terminal window.
Have fun playing!