This is the backend for a browser based multiplayer dice game, based on Perudo and Liar's Dice.
Written in Go 1.21 using websockets.
We chose these technologies to achieve our goals of creating a browser based game with two way communication that could handle a high degree of concurrency.
This is currently a work in progress and you can see a live demo here
To run the server, use go run main.go
To run the tests, use go test ./...
To play the game locally you will need to run the front end, which can be found here
The included config.json file can be used to set the port that the server runs on and the front end should accept the same config.json file.
For systemd:
dice-game-backend.service
needs to be placed in ~/.config/systemd/user/dice-game-backend.service