This game is a classic treasure hunt game. The difference is we have a server and clients, so we can play with our friends. The goal is to bring as many coins as you can to the campsite. Good luck on your treasure hunting!
Client's view
Server's view
Client: C++ and C semaphores
Server: C++ and C semaphores
Look at Run program section. First run server then run the clients.
The game can play up to 4 players. Next players joining won't be able to play the game and their terminal is likely to crash.
Server can input beasts by pressing b/B button on keyboard. He can also add coins by pressing c/t/T. The players move with the arrow keys.
Just press q/Q button to end the client or the server.
First you must be aware of many threats that are hiding behind corners. Collision with either player or beast will result in death. After dying, you lose all the coins you was carrying. So be careful when wandering with a bag full of coins, better leave them in campsite rather than lose them all.
Different types of treasure give players different amount of coins. So you should always look, wheather it is one coin or a chest of coins. There is a legend for newbies, so you won't get lost.
To make a game more difficult.
You must have gcc build-essential and ncurses library installed. You must run it on Linux, because I used POSIX semaphores, which are specific for Unix.
sudo apt-get update
sudo apt-get install build-essential libncurses5-dev libncursesw5-devNow you have to use Makefile to compile and run the client and the server.
make all
cd objs
./server
./clientAnd after quiting the server just delete the directory with the compiled programs.
make cleanI'm a Computer Science student and I am on my last year of TUOL in Łódź. This is one of the projects, that I was really working hard to look good and I am happy how it came out.
If you liked my project or you found a bug in it, leave a comment if you like. I am only a human, I make mistakes.

