This is a simple console-based implementation of the classic Tic-Tac-Toe game written in Java.
- The game is played on a 3x3 grid.
- Players take turns placing their marks (X or O) on the grid.
- The first player to get three of their marks in a row (horizontally, vertically, or diagonally) wins the game.
- If all the slots are filled without any player achieving a win, the game is declared a draw.
- Clone the repository to your local machine.
- Compile the
Main.java
file using a Java compiler. - Run the compiled Java program to start the game.
- Follow the on-screen instructions to enter the slot number for your move.
- Enjoy playing Tic-Tac-Toe in the console!