This project is a hangman game coded in C language. First, we start the server, then a client connects to the server and chooses a word to make another client connected to the server guess that word. Several games can be run on the server simultaneously.
The C language needs to be compiled. You don't know if you have enough to compile the code?
Linux / macOs :
(gcc may already be installed if you use one of these systems)
> sudo apt-get install gcc
Windows :
- Follow this tutorial
First of all, you have to clone the project :
> git clone https://github.com/Pierre-BISCARAS/HangMan.git
Then, go to the HangMan folder
> cd HangMan
Now, you are in the project.
To play the game, you had to run it.
The server is waiting for two players to connect
Warning: do not use capital letters or special characters
You have to start by compiling the file
> gcc server.c -o server
And start the server
> ./server
In reference to this tutorial, compile and run it.
> server.exe
The client needs the server ip and port as arguments.
Port 5051 is mandatory.
You have to start by compiling the file
> gcc client.c -o client
And start the server
> ./client 127.0.0.1 5051
In reference to this tutorial, compile and run it.
> client.exe 127.0.0.1 5051
Do the manipulation a second time with another client to be able to play.