This is a command-line implementation of the classic Tic-Tac-Toe game, built using Java. The game allows a player to compete against an AI (Artificial Intelligence) opponent.
- Interactive command-line interface for gameplay
- Player vs. AI mode
- Validation of user input and available positions
- Winning condition detection (row, column, or diagonal)
- Java Development Kit (JDK) installed on your system
- Download and install a Java IDE: Popular options include IntelliJ IDEA or Eclipse.
- Clone the repository: Use
git clone https://github.com/Saima223/TicTacToe.git
to download the project files. - Run the application:
- Open a terminal or command prompt and navigate to the project directory (
cd TicTacToe
). - Compile the code using
javac TicTacToe.java
. - Run the compiled application using
java TicTacToe
.
- Open a terminal or command prompt and navigate to the project directory (
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.