Skip to content

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

Notifications You must be signed in to change notification settings

meet244/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Languages