Skip to content

A simple tris game in c via cli, with udp AF_INET socket to play against other people

License

Notifications You must be signed in to change notification settings

Musooo/tris-socket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tris-Socket

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.

Table of Contents

Introduction

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.

Requirements

  • CMake 3.10 or higher
  • GCC or another compatible C compiler
  • Linux operating system

Building

You can build the project using CMake and Make.

  1. Create a build directory and navigate into it:
    mkdir build
    cd build
  2. Configure the project with CMake:
    cmake ..
  3. Build the project:
    make
  4. (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

Running

Running the Server

To start the server, run the following command from the build directory:

./server

Running the Client

To start the client, run the following command from the build directory:

./client

Testing

To run the tests, use the following command from the build directory:

make test

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A simple tris game in c via cli, with udp AF_INET socket to play against other people

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published