Skip to content

πŸ€– XO Genius is an AI-powered Tic Tac Toe game written in Java using the Swing library.

License

Notifications You must be signed in to change notification settings

Navid079/XO-Genius

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

XO Genius

πŸ€– 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.

How to Play

  1. πŸ“₯ Clone the repository or download the ZIP file.
  2. πŸ‘©β€πŸ’» Open the project in your favorite Java IDE.
  3. πŸ—οΈ Build and run the project.
  4. πŸ–₯️ The game window will open, displaying the Tic Tac Toe board.
  5. ❌ You play as X, and the program plays as O.
  6. πŸ–±οΈ Click on an empty square to make your move.
  7. πŸ€– The AI will make its move immediately after you.
  8. ♾️ The game continues until there is a winner or the board is full.
  9. πŸ† If you win or tie, you can start a new game by clicking on the board.

How It Works

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. 🧠

Future Improvements

πŸš€ 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!

License

XO Genius is released under the MIT License. See the LICENSE file for more details.

About

πŸ€– XO Genius is an AI-powered Tic Tac Toe game written in Java using the Swing library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages