RE
Tic-Tac-Toe with SFML
This project is a Tic-Tac-Toe game built using the SFML library.
Features
- Visually appealing design using SFML
- Supports two-player mode (Player vs Player)
- Clean and structured code
Prerequisites
To run this project, you need the following:
- C++ Compiler (e.g., g++, clang++)
- SFML 2.5.1 library
How to Run
1. Clone the Repository
First, clone the repository:
git clone https://github.com/RezaGooner/Tic-Tac-Toe-SFML.git
cd Tic-Tac-Toe-SFML2. Compile the Project
If SFML is installed on your system, you can compile the code as follows:
g++ -o TicTacToe main.cpp -lsfml-graphics -lsfml-window -lsfml-system3. Run the Game
After compiling, run the game with the following command:
./TicTacToeProject Structure
Tic-Tac-Toe-SFML
├── main.cpp # Contains the main game logic
├── CMakeLists.txt # Define path of SFML library and linkers
├── assets/ # Directory for game assets
│ ├── arial.ttf # Default font
├── include/ # Header files
│ ├── config.h # Define constant values and settings
└── cmake-build-debug/ # Directory for compiled binaries and necessary DLLs
On this page
Languages
Makefile50.3%C++21.6%C17.4%CMake10.7%TypeScript0.1%
Contributors
Latest Release
V1March 10, 2025Created January 24, 2025
Updated November 4, 2025