https://github.com/zouariomar/tic-tac-toe
This is a Tic Tac Toe game implemented in C++ using SDL 1.2 for graphics and CMake with Ninja as the build system
https://github.com/zouariomar/tic-tac-toe
c cmake game game-development gui ninja-build sdl sld2-image
Last synced: 2 months ago
JSON representation
This is a Tic Tac Toe game implemented in C++ using SDL 1.2 for graphics and CMake with Ninja as the build system
- Host: GitHub
- URL: https://github.com/zouariomar/tic-tac-toe
- Owner: ZouariOmar
- License: mit
- Created: 2024-10-23T02:13:57.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-02-18T17:46:09.000Z (2 months ago)
- Last Synced: 2025-02-18T18:42:47.591Z (2 months ago)
- Topics: c, cmake, game, game-development, gui, ninja-build, sdl, sld2-image
- Language: C
- Homepage: https://www.linkedin.com/in/zouari-omar-143239283
- Size: 1.72 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic Tac Toe Game
![]()
![]()
## Overview
This is a Tic Tac Toe game implemented in C++ using SDL 1.2 for graphics and CMake with Ninja as the build system. The game allows the player to compete against the computer on a 3x3 grid, aiming to align three of their marks (Kayori or Enemy) horizontally, vertically, or diagonally.
## Used tech





## Features
- player-computer gamePlay (Player X and Player O)
- User-friendly graphical interface powered by SDL
- Input validation to ensure valid moves
- Restart option to play multiple rounds## Prerequisites
Before running the game, ensure you have the following installed:
- C compiler (e.g., gcc)
- CMake (version 3.0 or higher)
- Ninja build system
- SDL 1.2 library## Project Structure
```bash
.tic-tac-toe
├── bin
│ ├── build
│ │ └── CMakeFiles
│ │ ├── 3.30.3
│ │ │ ├── CompilerIdC
│ │ │ │ └── tmp
│ │ │ └── CompilerIdCXX
│ │ │ └── tmp
│ │ ├── app.dir
│ │ └── pkgRedirects
│ ├── debug
│ ├── release
│ └── test
├── doc
├── pkg
└── project
├── doc
├── inc
├── models
├── res
└── src32 directories
```## Installation
1. **Clone the repository:**
```bash
git clone https://github.com/ZouariOmar/tic-tac-toe
cd tic-tac-toe
```2. **Run the game**
```bash
chmod +x run.sh
./run.sh ninja
```## Contributing
Contributions are welcome! If you have suggestions for improvements or features, feel free to fork the repository and submit a pull request.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENCE) file for details.
## Acknowledgments
- SDL for the graphics library.
- Thanks to everyone who contributed to the development of this game!