A simple Tic-Tac-Toe game implemented in Java. This game allows two players to take turns marking spaces on a 3x3 grid until one player wins.
- Turn-based gameplay: Players enter row and column numbers to place
X
orO
. - Win detection: Checks for row, column, or diagonal matches.
- Basic input validation: Ensures players cannot overwrite an occupied cell.
- Compile the Java file:
javac xo.java
- Run the program:
java xo
- Follow the prompts to play the game.
Enjoy playing Tic-Tac-Toe! 🚀