Tomecraft server implementation using web sockets
Go to file
2021-11-16 18:07:13 -05:00
init fix name 2021-10-06 16:43:49 -04:00
go.mod graveyard 2021-10-07 14:29:09 -04:00
go.sum graveyard 2021-10-07 14:29:09 -04:00
LICENSE readme and license 2021-10-04 12:03:44 -04:00
main.go update card view 2021-11-16 18:07:13 -05:00
Makefile typo 2021-10-06 16:38:26 -04:00
README.md readme and license 2021-10-04 12:03:44 -04:00
server.go add admin interface 2021-10-02 13:26:49 -04:00

tome_ws

Tomecraft server using tome_server and gorilla/websocket to have an actual working Tomecraft server.

How to build

Requires Go 1.16

Run make to build the tome_ws binary.

or just run go build

Running tome_ws

Run the tome_ws binary. You'll need to open port 7636 for it to work.

tome_ws has one flag: -admin

Running with -admin causes the server to log to file serverlog.txt and expose a commandline admin interface.

Admin interface commands:

get queue: Get list of players in queue
get matches: Get list of current matches
set match <match UUID>: Set the provided match UUID as the current match
get match: Show current match info
set player 1|2: Set current player to be eiter Sentinal (1) or Scourge (2)
get player: show current player info
get deck <index>: Show current players deck. If index is provided, show card at index in current players deck
get hand <index>: Show current players hand. If index is provided, show card at index in current players hand
get board <index>: Show current players board. If index is provided, show card at index in current players board
reset: reset current match and player
quit: exit the server