Welcome to the Tic-Tac-Toe with AI project! This Java-based application allows users to play the classic game of Tic-Tac-Toe against an AI opponent.
- Single-player mode against an AI opponent
- Simple and intuitive graphical user interface
- Intelligent AI that provides a challenging gameplay experience
- Ability to restart the game and play multiple rounds
- Java Development Kit (JDK) 11 or higher
- A Java IDE or text editor of your choice
- Clone the repository:
git clone https://github.com/rodrigo-troy/Tic-Tac-Toe-with-AI-java.git
- Open the project in your preferred Java IDE.
- Build the project to resolve dependencies.
- Navigate to the main class file (
Main.java
). - Run the
Main
class to start the game. - Enjoy playing Tic-Tac-Toe against the AI!
- The game board consists of a 3x3 grid.
- Players take turns placing their marks (X or O) on the empty squares.
- The first player to get three of their marks in a row (horizontally, vertically, or diagonally) wins the game.
- If all nine squares are filled and neither player has three in a row, the game is a draw.
Contributions are welcome! If you would like to contribute to this project, please fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.