This project is a graphical Tic-Tac-Toe game built using C++ and the SFML library for rendering. The game offers various levels of AI difficulty, customizable board sizes, and win conditions, providing an engaging experience for players of all skill levels.
- Graphical User Interface (GUI): The game uses SFML to create a simple and interactive interface.
- Multiple AI Difficulty Levels: Players can choose between Easy, Medium, Hard, and Ultra levels of AI difficulty.
- Customizable Board: You can adjust the board size and win condition length from the options panel.
- Interactive Gameplay: Play against the AI or another player locally with full mouse support.
- Win/Tie Detection: The game automatically detects wins and ties, displaying results with custom graphics.
To build and run this project, you'll need:
- C++ Compiler
- SFML 2.5+ (Simple and Fast Multimedia Library)
- CMake (optional, for building)
- Start Game: Click the "Start Game" button to begin playing.
- Board Size: Use the + and - buttons to adjust the board size.
- Win Condition: Adjust the win length (number of marks in a row needed to win).
- AI Difficulty: Choose AI difficulty from Easy, Medium, Hard, and Ultra.
- Gameplay: Click on the board to make a move. The AI will respond automatically.
- Select the board size and difficulty level from the options.
- Click "Start Game" to begin.
- Take turns placing X's and O's on the board.
- The game ends when a player gets the required number of marks in a row (win length) or when the board is full (tie).
- Multiplayer Mode: Add a local multiplayer option to allow two players to play on the same device.
- Online Multiplayer: Implement an online multiplayer mode.
- Improved AI: Make the AI more challenging and unpredictable.