Word game similar to Cards Against Humanity, except all answers are written by player. Built in go and svelte to try them out in something more complex. Uses websockets to communicate, stores almost no data on the server.
- Build the frontend
- In the frontend directory run
npm i
thennpm run build
, you will end up with a frontend build in the public directory. - Copy the contents of public directory to
cmd/fgame/web/
- In the frontend directory run
- Build the game
- Provide your own questions in
./internal/server/data.txt
- In the root directory run
go build ./cmd/fgame/
.
- Provide your own questions in
-addr string
http service address (default "localhost:8080")
-maxPlayers int
maximum number of players in room (default 10)
-maxScore int
maximum score for player (default 10)
-timeoutMultiplier int
timeout multiplier for debugging (default 1)