This is a simple command-line implementation of the Tic Tac Toe game using C++ and SDL library. The game allows you to play against a computer opponent or another player. 💻🎮
output.mp4
Before running the game, make sure you have the following installed on your system:
- SDL library 📚
- SDL_mixer library 🔊
- SDL_image library 🌅
You can find the SDL library on the official SDL GitHub repository: SDL GitHub Repository
- Clone the repository to your local machine.
- Open the project in your preferred C++ IDE or editor.
- Build the project using the appropriate build commands for your IDE or compiler.
- Run the executable generated.
▶️
Note: Make sure to link the necessary SDL libraries during the build process.
- Mouse click: Place your move on the game board. 🖱️
- When you run the game, a start screen will appear.
- Click on the "Single Player" button to play against the computer, or click on the "Multiplayer" button to play against another player.
- The game board will be displayed. Click on the desired cell to place your move.
- The game continues until one player wins or the game ends in a draw.
- After the game ends, you can choose to play again or quit. ♾️