/XOX

Tic tac toe in java

Primary LanguageJava

Tic-Tac-Toe Game

This is a simple command-line Tic-Tac-Toe game implemented in Java.

How to Play

  1. Clone the repository to your local machine using the following command:

    git clone https://github.com/Sahaj19/XOX.git
    
  2. Navigate to the directory containing the cloned repository:

    cd XOX
    
  3. Compile the Java program:

    javac Main.java
    
  4. Run the game:

    java Main
    
  5. 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.

  6. The game will continue until one player wins or the game ends in a draw.

  7. To exit the game at any time, press Ctrl + C or close the terminal window.

Have fun playing!