Skip to content

qqueke/lizardNRoaches

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lizardNRoaches Game

Welcome to lizardNRoaches, a game where players take on the role of lizards trying to eat as many roaches as possible while avoiding wasps. This game comes in two parts:

Part 1

In Part 1, the game consists of two separate components: the server and the client. The server is responsible for managing the game state and communicating with clients, while the client is responsible for displaying the game and sending user input to the server. In order to visualize the GUI, Display-app must be executed alongside the Lizard-Client. Roaches bots can be incorporated with the respective client and the server should is single threaded.

Part 2

In Part 2, the gmae is further extended so that clients board is updated when connecting to the board. Furthermore, Wasps can be added the game with Wasps-client, and the server is multi-threaded.

Speficiations

For more detailed explanations regarding both parts, please read LizardNRoaches-Part(A/B).pdf

Requirements

  • Curses library
  • Protocol Buffers
  • ZeroMQ

How to Compile and Run

  1. Navigate to the part1 or part2 directory
  2. Compile server and clients using make
  3. Run server with ./bin/lizardsNroaches-server
  4. Run client with ./bin/Lizard-client
  5. If on Part1 run ./bin/Display-app for UI
  6. Add bots by running ./bin/Roaches-Client and/or ./bin/Wasps-Client (wasps are only available in Part2)