Commit graph

114 commits

Author SHA1 Message Date
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
234baefb9e Update Sprint 4 backlog 2022-03-30 21:40:24 +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
8706f8a90d Add note for debugging the backend
Just in case I lose my terminal history, I'm saving a curl command used
to test the backend.
2022-03-29 17:30:26 +09:00
d66102ea6b Update Sprint 4 backlog 2022-03-29 17:19:04 +09:00
c5b9156df3 backend: Some refactoring
Reuse "check if player exists" fn where needed. Also, the same fn was
refactored to handle using an existing DB Connection.
2022-03-29 17:10:12 +09:00
fe56adf562 backend: Impl second backend protocol query 2022-03-29 17:02:57 +09:00
545b5a3a1b backend: Move fn init_conn into handler struct 2022-03-29 15:05:23 +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
ec7f664c81 Symlink/adapt shared code from frontend to backend 2022-03-29 14:45:49 +09:00
e4d4d6e153 Move enum from yew_components mod to state mod
Preparation for symlinking shared code into the backend project.
2022-03-29 14:41:04 +09:00
1c1e02742c Update Sprint 4 backlog 2022-03-29 11:22:10 +09:00
e7c3670498 backend: Update db_handler's db spec. 2022-03-28 17:13:32 +09:00
a1668aa0b6 backend: Remove "games.date_changed" from db spec. 2022-03-28 17:12:01 +09:00
760a6bda4f backend: Add "date_added" column to db spec. 2022-03-28 17:10:49 +09:00
fcd20af9bd backend: Use enum to handle multiple db requests 2022-03-28 16:31:53 +09:00
ca2b74eb03 Update README.md 2022-03-28 16:20:41 +09:00
26b1f43746 Update Sprint 3 backlog, create Sprint 4 backlog 2022-03-28 16:19:47 +09:00
5e0f0c2d6d Sprint 3 Retrospective, update backlogs 2022-03-28 16:14:10 +09:00
839e9021fa Refactor: Replace calling JS settimeout with Rust
web-sys and js-sys provides ways to use "settimeout" in pure Rust which
is used instead of calling into Javascript to do "settimeout".
2022-03-23 16:56:25 +09:00
20a8b6ade0 Update backend_database_specification.md 2022-03-23 16:12:36 +09:00
6c47ce948b Impl graceful shutdown of backend on failure 2022-03-18 23:43:15 +09:00
13f500b4f5 Update Sprint 3 backlog 2022-03-18 19:34:29 +09:00
5a0c0696d1 Impl enough backend to assign ids to players 2022-03-18 19:29:38 +09:00
495a11b87f Update backend database specification 2022-03-18 17:03:07 +09:00
2f38bf9a0b Fix typo in backend database spec. 2022-03-18 16:45:44 +09:00
2bc0094052 Minor fix to backend database spec. 2022-03-18 16:42:58 +09:00
0eba561699 Update Sprint 3 backlog 2022-03-18 16:41:48 +09:00
48412bfcb7 Writeup backend database specification 2022-03-18 16:39:30 +09:00
c321d4f54a Up. Sprint 3 backlog, update backend protocol spec 2022-03-18 15:16:27 +09:00
fc7dd81516 Update Sprint 3 backlog 2022-03-17 12:07:41 +09:00
f5e632bce5 Add retrospectives for Sprint 1, 2 2022-03-17 11:45:27 +09:00
766528384f Tweak colors of Sprint 1, 2 hours 2022-03-17 11:36:58 +09:00
002e93f169 Update Sprint 3 backlog 2022-03-17 11:33:59 +09:00
dcc2022a7d Update result burndown charts for sprint 1,2 2022-03-17 11:27:31 +09:00
01c10ad901 Add graph for Sprint 1 2022-03-16 22:16:21 +09:00
2cedc0804f Refactoring/cleanup of backend 2022-03-16 13:10:21 +09:00
b9921e6f47 Have backend always return JSON String 2022-03-16 13:09:07 +09:00
97ca4adecc Refactorings/fixes for back-end 2022-03-16 12:31:18 +09:00
e1180963f3 Update /README.md about the back-end 2022-03-16 12:27:22 +09:00
7c4d38549f Update backend protocol, skeleton backend project 2022-03-16 12:26:18 +09:00
78521f683e Update Sprint 3 backlog 2022-03-15 17:06:16 +09:00
d200a2fd7c Rename deferred_helper.js -> async_js_helper.js 2022-03-15 13:46:35 +09:00
ebf0cb5bb8 Impl async delay on AI choice
This commit is also a stepping-stone towards handling http requests
which will require deferred callbacks on Yew Components. By figuring
out how to delay callbacks in this commit, it should be easier to
figure out how to handle http requests that may require a deferred
callback.
2022-03-15 13:16:09 +09:00
02e0d5b7e2 Update Sprint 3 backlog 2022-03-14 14:38:47 +09:00
3d61c0d626 Back-end skeleton project, backend protocol spec 2022-03-14 14:33:51 +09:00
8fa4093a0d Setup dependencies for connection to backend WIP 2022-03-14 13:18:11 +09:00
e1b2c62912 Add sprint 3 backlog 2022-03-13 22:15:05 +09:00
eb86b52b03 Update backlogs/user_stories after Sprint 2 2022-03-13 22:05:10 +09:00
414740b7ce Reorder code to print winning move
Previously, the winning move was not printed at the bottom info_text.
2022-03-10 18:16:30 +09:00