The Bidding Game, a client-server game implementation consisted of (4) clients and the server.C POSIX was used to interract with the threads.
$ gcc server.c -o server
$ ./server 127.0.0.1 9999 1000
Every client connects to this particular ip address:port and when (4) clients connect, the game starts.
$ gcc client.c -o client
$ ./client 127.0.0.1:9999
- Everyone starts with the balance set by the server and takes their place on the terrain. Terrain consists of an 9x9 array with every player settled on every corner. The so called desired object/prize is located in the middle of the terrain, or terrain[4,4].
- Every player makes a bid on every round without any knowledge of their opponents' choices or strategy.
- When everyone finishes bidding, a round ends and a winner for this rounds is announced. This player comes one step closer to the prize until someone actually matches the prize's position.
- Ties are being held by an advantage point, which changes on every round consecutively for every player.
- Player who's closer to the advantage point wins the tie.