DEV 1404: Support streaming CLI games to the browser board (#88)
* add minimal support for serving a game to the board UI * refactor into new board package * support reporting errors and author names to board * support passing an alternate board URL * avoid using IPv6 for local URL * use rules.Point instead of a custom Point type for board package * use zero for generic communication error code in cli * rename createGameEvent to buildFrameEvent * tests for conversion from boardState/snakeState to game frame
This commit is contained in:
parent
f6c3ed0791
commit
a451cda9c4
6 changed files with 504 additions and 22 deletions
3
go.mod
3
go.mod
|
|
@ -4,7 +4,10 @@ go 1.18
|
|||
|
||||
require (
|
||||
github.com/google/uuid v1.1.2
|
||||
github.com/gorilla/websocket v1.4.2
|
||||
github.com/mitchellh/go-homedir v1.1.0
|
||||
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
|
||||
github.com/rs/cors v1.8.2
|
||||
github.com/spf13/cobra v1.1.1
|
||||
github.com/spf13/viper v1.7.1
|
||||
github.com/stretchr/testify v1.4.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue