A simple Tik Tak Toe game built with Java for two players. Played in the console, this game allows players to take turns placing Xs and Os until someone wins or the game results in a draw.
- ✅ 3x3 game board
- 🎯 Two-player mode (X and O)
- 🚫 Input validation (prevents overwriting and invalid positions)
- 🏆 Win detection (rows, columns, diagonals)
- 🤝 Draw detection
- Run the program in a terminal or Java IDE.
- Players will be prompted to enter their moves using row and column numbers (1–3).
- The game continues until one player wins or the board is full (draw).
- Java JDK (version 8 or higher)
-
Clone the repository:
git clone https://github.com/bhavishya2601/TikTakToe-Game.git cd TikTakToe-Game -
Compile the Java files:
javac Main.java
-
Run the application:
java Main