Commit graph

141 commits

Author SHA1 Message Date
Stephen Seo 9fc0408d16 Update README.md 2022-04-06 20:57:26 +09:00
Stephen Seo 74ca3fd696 Add GPL3 Licence headers to sources 2022-04-06 20:49:54 +09:00
Stephen Seo 62431f0d0e Update README.md for backend and frontend 2022-04-06 20:38:49 +09:00
Stephen Seo 50221a0356 Add Licenses for frontend and backend (GPL3) 2022-04-06 20:34:45 +09:00
Stephen Seo 32d58fae2c Update Sprint 5 backlog and product backlog 2022-04-06 20:27:35 +09:00
Stephen Seo 91c9eab05e Fix messages being displayed on networked game end 2022-04-06 20:17:27 +09:00
Stephen Seo 59bdcc2a34 Tweak "board to string" and back for better info 2022-04-06 20:09:22 +09:00
Stephen Seo 2e0b29ed70 Add "release" configuration for BACKEND_URL 2022-04-06 19:40:40 +09:00
Stephen Seo 567cec9500 Minor tweaks (and cargo fmt got aggressive) 2022-04-06 19:38:59 +09:00
Stephen Seo 89b9bf860b Working multiplayer between frontend backend
WIP Need to set the URL and host the backend on the website.
2022-04-06 18:43:17 +09:00
Stephen Seo 8c84aae173 605.607 WIP! working get-id and disconnect
The frontend "server" and backend server must be served via the same
port/address. This can be done by using nginx as the server, and using
reverse-proxies from nginx to the frontend and backend servers.
2022-04-06 13:39:12 +09:00
Stephen Seo 8712d4cd8b frontend: WIP! request id in progress
Frontend is able to successfully send a Request, but is failing to
get/parse the Response.
2022-04-05 18:16:04 +09:00
Stephen Seo a3ecde2c25 Update Sprint 5 backlog 2022-04-05 16:00:29 +09:00
Stephen Seo 83a9ab2ea0 frontend: WIP! in progress setting up id request 2022-04-04 18:25:17 +09:00
Stephen Seo 39c8177914 Add Sprint 5 backlog 2022-04-04 14:37:20 +09:00
Stephen Seo fc591c3210 Update Sprint 4 Retrospective, Product Backlog 2022-04-04 14:25:10 +09:00
Stephen Seo 1485bc8c3a Update Product Backlog 2022-04-04 14:10:07 +09:00
Stephen Seo 83a0e9dabf Add Sprint 4 Retrospective 2022-04-04 14:06:56 +09:00
Stephen Seo fe3e10aa2a Update Sprint 4 backlog 2022-04-04 13:58:23 +09:00
Stephen Seo 2a7a961c9c Minor refactorings 2022-04-01 20:04:40 +09:00
Stephen Seo e4f5f48bae Update Sprint 4 backlog 2022-04-01 19:58:17 +09:00
Stephen Seo c8eb6ab5be Impl turn timeouts, db entry timeouts
AI takes a players turn if they take too long on their turn (currently
set to 25 seconds).
Backend times out player/game entries in database.
2022-04-01 19:52:46 +09:00
Stephen Seo d851d90640 Refactorings, split lengthy code into separate fn 2022-04-01 17:37:37 +09:00
Stephen Seo 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
Stephen Seo 8782a731bc Move some backend fns to the shared "state.rs" 2022-03-31 21:02:52 +09:00
Stephen Seo b783e35759 Update Sprint 4 backlog 2022-03-31 20:45:24 +09:00
Stephen Seo 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
Stephen Seo 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
Stephen Seo 234baefb9e Update Sprint 4 backlog 2022-03-30 21:40:24 +09:00
Stephen Seo 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
Stephen Seo 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
Stephen Seo d66102ea6b Update Sprint 4 backlog 2022-03-29 17:19:04 +09:00
Stephen Seo 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
Stephen Seo fe56adf562 backend: Impl second backend protocol query 2022-03-29 17:02:57 +09:00
Stephen Seo 545b5a3a1b backend: Move fn init_conn into handler struct 2022-03-29 15:05:23 +09:00
Stephen Seo 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
Stephen Seo ec7f664c81 Symlink/adapt shared code from frontend to backend 2022-03-29 14:45:49 +09:00
Stephen Seo 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
Stephen Seo 1c1e02742c Update Sprint 4 backlog 2022-03-29 11:22:10 +09:00
Stephen Seo e7c3670498 backend: Update db_handler's db spec. 2022-03-28 17:13:32 +09:00
Stephen Seo a1668aa0b6 backend: Remove "games.date_changed" from db spec. 2022-03-28 17:12:01 +09:00
Stephen Seo 760a6bda4f backend: Add "date_added" column to db spec. 2022-03-28 17:10:49 +09:00
Stephen Seo fcd20af9bd backend: Use enum to handle multiple db requests 2022-03-28 16:31:53 +09:00
Stephen Seo ca2b74eb03 Update README.md 2022-03-28 16:20:41 +09:00
Stephen Seo 26b1f43746 Update Sprint 3 backlog, create Sprint 4 backlog 2022-03-28 16:19:47 +09:00
Stephen Seo 5e0f0c2d6d Sprint 3 Retrospective, update backlogs 2022-03-28 16:14:10 +09:00
Stephen Seo 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
Stephen Seo 20a8b6ade0 Update backend_database_specification.md 2022-03-23 16:12:36 +09:00
Stephen Seo 6c47ce948b Impl graceful shutdown of backend on failure 2022-03-18 23:43:15 +09:00
Stephen Seo 13f500b4f5 Update Sprint 3 backlog 2022-03-18 19:34:29 +09:00