Commit graph

11 commits

Author SHA1 Message Date
0d9e35dd28 Refactorings and bug fixes
Protocol was also updated to match the output from the backend.
Fixed "id" not returning as an integer from the backend.
2022-04-01 17:17:42 +09:00
dbb1c3ad35 backend: Impl "place_token" protocol
Some edge-cases might not be addressed.

Need to impl. "timers" for clearing out stale entries in the database.
2022-03-31 20:38:22 +09:00
473e76a1bc Impl disconnect protocol (and related changes)
Players can now make a "disconnect" request, and requests for
"game_state" will respond once that an opponent has disconnected before
removing the game from the DB.
2022-03-31 17:38:03 +09:00
fbf47027ef backend: refactorings, impl "board_state" query
Implemented the fifth backend protocol request/response ("board_state").
Some refactorings involve improving readability from handling unwrapping Option
of &Connection objects.
2022-03-30 20:44:18 +09:00
fe56adf562 backend: Impl second backend protocol query 2022-03-29 17:02:57 +09:00
40b2333767 Refactor db_handler to use struct to split up code
Also refactored the GetID send value type.
2022-03-29 15:03:08 +09:00
fcd20af9bd backend: Use enum to handle multiple db requests 2022-03-28 16:31:53 +09:00
6c47ce948b Impl graceful shutdown of backend on failure 2022-03-18 23:43:15 +09:00
5a0c0696d1 Impl enough backend to assign ids to players 2022-03-18 19:29:38 +09:00
97ca4adecc Refactorings/fixes for back-end 2022-03-16 12:31:18 +09:00
7c4d38549f Update backend protocol, skeleton backend project 2022-03-16 12:26:18 +09:00