π€ XO Genius is an AI-powered Tic Tac Toe game written in Java using the Swing library. The AI player utilizes the unbeatable minimax algorithm to provide a challenging gameplay experience.
- π₯ Clone the repository or download the ZIP file.
- π©βπ» Open the project in your favorite Java IDE.
- ποΈ Build and run the project.
- π₯οΈ The game window will open, displaying the Tic Tac Toe board.
- β You play as X, and the program plays as O.
- π±οΈ Click on an empty square to make your move.
- π€ The AI will make its move immediately after you.
- βΎοΈ The game continues until there is a winner or the board is full.
- π If you win or tie, you can start a new game by clicking on the board.
The program implements the powerful minimax algorithm to determine the optimal move for the AI player. It searches through all possible moves and selects the one that leads to the best outcome for the AI. π§
π We welcome contributions to enhance XO Genius! Here are some potential areas for improvement:
- π Add support for different board sizes and customizable win conditions.
- π Enable multiplayer mode for playing against other players online.
We appreciate any ideas, bug reports, or pull requests you may have. Let's make XO Genius even more exciting together!
XO Genius is released under the MIT License. See the LICENSE file for more details.