This project is a Tic-Tac-Toe game built using the SFML library.
- Visually appealing design using SFML
- Supports two-player mode (Player vs Player)
- Clean and structured code
To run this project, you need the following:
- C++ Compiler (e.g., g++, clang++)
- SFML 2.5.1 library
First, clone the repository:
git clone https://github.com/RezaGooner/Tic-Tac-Toe-SFML.git
cd Tic-Tac-Toe-SFML
If SFML is installed on your system, you can compile the code as follows:
g++ -o TicTacToe main.cpp -lsfml-graphics -lsfml-window -lsfml-system
After compiling, run the game with the following command:
./TicTacToe
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