meet244 / Tic-Tac-Toe

Tic Tac Toe game with SDL implementation, play against computer or player, use mouse clicks for moves.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic Tac Toe Game ๐ŸŽฎโŒโญ•

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. ๐Ÿ’ป๐ŸŽฎ

Demo Video

output.mp4

Prerequisites

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

How to Build and Run

  1. Clone the repository to your local machine.
  2. Open the project in your preferred C++ IDE or editor.
  3. Build the project using the appropriate build commands for your IDE or compiler.
  4. Run the executable generated. โ–ถ๏ธ

Note: Make sure to link the necessary SDL libraries during the build process.

Controls

  • Mouse click: Place your move on the game board. ๐Ÿ–ฑ๏ธ

Gameplay

  1. When you run the game, a start screen will appear.
  2. Click on the "Single Player" button to play against the computer, or click on the "Multiplayer" button to play against another player.
  3. The game board will be displayed. Click on the desired cell to place your move.
  4. The game continues until one player wins or the game ends in a draw.
  5. After the game ends, you can choose to play again or quit. โ™พ๏ธ

About

Tic Tac Toe game with SDL implementation, play against computer or player, use mouse clicks for moves.


Languages

Language:C++ 100.0%