Tris-Socket is a multiplayer tic-tac-toe game based on UDP sockets. The project includes a server that manages player connections and a client that allows players to interact with the game. This project is still a work in progress, and new features will maybe be added in the future.
Tris-Socket is a multiplayer tic-tac-toe game that uses UDP sockets for communication between the server and clients. The server manages player connections, creates game rooms, and starts new games when a room is full. Clients connect to the server, send their moves, and receive moves from other players.
- CMake 3.10 or higher
- GCC or another compatible C compiler
- Linux operating system
You can build the project using CMake and Make.
- Create a build directory and navigate into it:
mkdir build cd build
- Configure the project with CMake:
cmake ..
- Build the project:
make
- (optional) If you want to include the tests, you can enable the BUILD_TESTS option when configuring the project with CMake:
cmake -DBUILD_TESTS=ON .. make test
To start the server, run the following command from the build directory:
./server
To start the client, run the following command from the build directory:
./client
To run the tests, use the following command from the build directory:
make test
This project is licensed under the MIT License. See the LICENSE file for details.