Code Monkey home page Code Monkey logo

tic-tac-toe's Introduction

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. โ™พ๏ธ

tic-tac-toe's People

Contributors

meet244 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.