This is a simple command-line implementation of the classic Tic Tac Toe game in Java.
- Allows two players to play Tic Tac Toe.
- Supports basic command-line interface for player interaction.
- Displays the current state of the game board after each move.
- Determines the winner or declares a draw when the game is over.
-
Clone this repository:
git clone https://github.com/your-username/tic-tac-toe.git
-
Compile the Java source files:
javac *.java
-
Run the game:
java TicTacToe
-
Follow the on-screen instructions to play the game. Players take turns entering their moves by specifying the row and column numbers (1-3) where they want to place their mark.
-
The game continues until a player wins, or the board is filled, resulting in a draw.
Contributions are welcome! If you'd like to contribute to this project, feel free to open an issue or submit a pull request.