An open API service indexing awesome lists of open source software.

https://github.com/ivandrf/tic-tac-toe

Tic-Tac-Toe realization using the SFML library
https://github.com/ivandrf/tic-tac-toe

cmake cpp sfml tic-tac-toe

Last synced: 4 months ago
JSON representation

Tic-Tac-Toe realization using the SFML library

Awesome Lists containing this project

README

          

# 🎮 Tic-Tac-Toe Game

**Tic-Tac-Toe** is a classic two-player game where the goal is to be the first to align three of your symbols (X or O) in a row on a 3x3 grid. This project is a modern implementation of the game, featuring a graphical interface built using the **SFML (Simple and Fast Multimedia Library)**.

---

![Tic-Tac-Toe](https://github.com/user-attachments/assets/23b1efd1-6359-4a41-a776-a99be4a75fbe)

---

## 🚀 Features

- **Graphical Interface**: The game is built using **SFML**, providing smooth graphics and intuitive controls.
- **Simplicity and Usability**: An easy-to-understand interface suitable for all ages.
- **Cross-Platform**: Thanks to SFML, the game can be compiled and run on Windows, Linux, and macOS.
- **Clean Code**: The project is written in **C++** using modern standards.

---

## 🎯 Rules of the Game

1. Two players take turns: one uses **X**, and the other uses **O**.
2. Players place their symbols in empty cells of a 3x3 grid.
3. The goal is to be the first to align three of your symbols horizontally, vertically, or diagonally.
4. If all cells are filled and no player has aligned three symbols, the game ends in a **draw**.

---

## 🛠 Technologies Used

- **Programming Language**: C++ (C++20 standard)
- **Graphics Library**: SFML 2.6.1
- **Build System**: CMake
- **Tools**: Clang-Tidy, Clang-Format

---

# ✨ How to install
**Download this**
* [SFML 2.6.1](https://www.sfml-dev.org/download/sfml/2.6.1/)
* [Game Files](https://github.com/IvanDrf/Tic-Tac-Toe/tree/develop)
* [CMake (optional)](https://cmake.org/)