The Lem-IPC project consists in creating a small game through processes.
By launching the same binary several times, several players then join a game and only the last team left wins !
- Clone Repository
git clone https://github.com/vvaucoul/Lem-IPC && cd Lem-IPC- Compilation
make
make processus
make visualizeThen, you get 3 binaries.
- lemipc: the main binary to launch the game
- lemipc-visualizer: the binary to visualize the real-time game created with the MLX
- lemipc-processu: creating multiple processes for the game
Usage: ./lemipc [TEAM] [OPTIONS]...
Lemipc is a simple IPC game with multiple processus.
First execution: [HOST]
Second execution and more: [CLIENT]
[TEAM]: team number (1 to 32)
[OPTIONS]:
-h: display this help
-s: display shared memory segment
-c: display communications between processus.
--pts:<n>: set the number of players to start the game. (Default: 4)
--tts:<n>: set the number of teams to start the game. (Default: 2)
Examples:
./lemipc 1
./lemipc 1 --tts:8
./lemipc 1 --tts:8 --pts:4./lemipc 1 --pts:4
./lemipc-processus 3 2./lemipc 1 --pts:4
./lemipc-visualizer -m
./lemipc-processus 3 2./lemipc 1 --pts:200
./lemipc-visualizer -m
./lemipc-processus 200 2