codlocker / werewolves-go

Werewolves Game implementation in Golang
GNU General Public License v3.0
0 stars 0 forks source link

WEREWOLVES GAME

This repo creates the well known werewolves game using Go Programming language. The program is architectured around using Actor model for defining the server and client programs. The communication mode is using gRPC which supports bidirectional streaming for RPCs.

STACK

Installation requirements (Windows)

Installation requirements (Linux)

Repo setup instructions

How to run?

  1. Ensure you are in the werewolf code repo (Run cd werewolves-go/)

  2. Run make build

    • Build linux
  3. The client and server builds are created in the /bin/ folder.

  4. Clean existing builds by running make clean (if required).

  5. Run Server first (Everything needs to run in werewolves-go path)

    • To run server execute command
    • Execute: cd bin/
    • Execute: ./server
  6. Run Clients next (Everything needs to run in werewolves-go path)

    • To run client execute command (Open a new terminal window for each client you want to run)
    • Execute: cd bin/
    • Execute (change username to a new name in every client window): ./client -username=<username>
      • Examples: ./client username=a
      • Examples: ./client username=b
      • Examples: ./client username=c
      • Examples: ./client username=d

POSSIBLE ERRORS