AI Tic-Tac-Toe is a Java-based implementation of the classic Tic-Tac-Toe game, featuring both single-player mode against an AI opponent and multiplayer mode. The AI uses the Minimax algorithm to provide a challenging gameplay experience.
- Single-Player Mode: Play against an AI opponent that uses the Minimax algorithm for strategic moves.
- Multiplayer Mode: Challenge a friend in a two-player game.
- Intuitive GUI: Simple and user-friendly interface built with Java Swing.
- Dynamic Gameplay: Real-time updates and game state management.
-
Clone the Repository:
-
Navigate to the Project Directory:
-
Compile the Java Files:
-
Run the Application:
- Launch the application to select the game mode (Single-Player or Multiplayer).
- In Single-Player mode, the AI will make moves based on the Minimax algorithm.
- In Multiplayer mode, two players can alternate turns using the interface.
- The game will notify players of the result (win, loss, or tie) and offer to restart.
- Minimax Algorithm: Employed in Single-Player mode to determine the optimal move for the AI.
Feel free to submit issues or pull requests. Contributions to improve the game or add new features are welcome!