Commit graph

12 commits

Author SHA1 Message Date
Stephen Seo 2b03d39737 Impl being able to debug locally
CORS (Cross-Origin Resource Sharing) prevented the application's
networked (multiplayer) support from working locally. The
debug_local_testing branch has changes to allow running the game
locally. The backend must be run with `cargo run --release` or `cargo
run`, and the frontend must be run with `trunk serve`, and the
browser(s) must open `http://localhost:8080/`.
2022-09-20 19:26:50 +09:00
Stephen Seo f4f3ad7a5b Refactorings, fix bug where board doesn't update
Also silence warnings related to unused code since the front-end and
back-end share some code.
2022-05-03 13:18:07 +09:00
Stephen Seo 665dff94fe back-end: Enforce max-length of user-input phrase 2022-04-27 14:11:02 +09:00
Stephen Seo 501ce91ac3 back_end refactorings
Have back_end cleanup stale players/games on an interval, not every
iteration of its loop.

Replace usage of recursion in db_handler.rs .
2022-04-20 14:14:03 +09:00
Stephen Seo 74ca3fd696 Add GPL3 Licence headers to sources 2022-04-06 20:49:54 +09:00
Stephen Seo 2e0b29ed70 Add "release" configuration for BACKEND_URL 2022-04-06 19:40:40 +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 83a9ab2ea0 frontend: WIP! in progress setting up id request 2022-04-04 18:25: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 93af9c234d WIP Utility based AI, some impl. progress 2022-03-07 14:23:39 +09:00
Stephen Seo 3b4d8b3483 Impl additional info text box, drop logic
Can place tokens, and not place tokens where there already is a token.

Additional info text box added to the side of the board.

More information to the UI regarding placed tokens.
2022-03-02 17:51:14 +09:00
Stephen Seo 15c7dc7654 Reorganize front-end source into modules 2022-03-02 15:18:21 +09:00