]> git.seodisparate.com - EN605.607.81.SP22_ASDM_Project/log
EN605.607.81.SP22_ASDM_Project
3 years agoRefactorings, split lengthy code into separate fn
Stephen Seo [Fri, 1 Apr 2022 08:37:37 +0000 (17:37 +0900)]
Refactorings, split lengthy code into separate fn

3 years agoRefactorings and bug fixes
Stephen Seo [Fri, 1 Apr 2022 08:17:42 +0000 (17:17 +0900)]
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.

3 years agoMove some backend fns to the shared "state.rs" sprint_04_day_4
Stephen Seo [Thu, 31 Mar 2022 12:02:52 +0000 (21:02 +0900)]
Move some backend fns to the shared "state.rs"

3 years agoUpdate Sprint 4 backlog
Stephen Seo [Thu, 31 Mar 2022 11:45:24 +0000 (20:45 +0900)]
Update Sprint 4 backlog

3 years agobackend: Impl "place_token" protocol
Stephen Seo [Thu, 31 Mar 2022 11:38:22 +0000 (20:38 +0900)]
backend: Impl "place_token" protocol

Some edge-cases might not be addressed.

Need to impl. "timers" for clearing out stale entries in the database.

3 years agoImpl disconnect protocol (and related changes)
Stephen Seo [Thu, 31 Mar 2022 08:38:03 +0000 (17:38 +0900)]
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.

3 years agoUpdate Sprint 4 backlog sprint_04_day_3
Stephen Seo [Wed, 30 Mar 2022 12:40:24 +0000 (21:40 +0900)]
Update Sprint 4 backlog

3 years agobackend: refactorings, impl "board_state" query
Stephen Seo [Wed, 30 Mar 2022 11:43:49 +0000 (20:43 +0900)]
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.

3 years agoAdd note for debugging the backend sprint_04_day_2
Stephen Seo [Tue, 29 Mar 2022 08:30:26 +0000 (17:30 +0900)]
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.

3 years agoUpdate Sprint 4 backlog
Stephen Seo [Tue, 29 Mar 2022 08:19:04 +0000 (17:19 +0900)]
Update Sprint 4 backlog

3 years agobackend: Some refactoring
Stephen Seo [Tue, 29 Mar 2022 08:10:12 +0000 (17:10 +0900)]
backend: Some refactoring

Reuse "check if player exists" fn where needed. Also, the same fn was
refactored to handle using an existing DB Connection.

3 years agobackend: Impl second backend protocol query
Stephen Seo [Tue, 29 Mar 2022 08:02:57 +0000 (17:02 +0900)]
backend: Impl second backend protocol query

3 years agobackend: Move fn init_conn into handler struct
Stephen Seo [Tue, 29 Mar 2022 06:05:23 +0000 (15:05 +0900)]
backend: Move fn init_conn into handler struct

3 years agoRefactor db_handler to use struct to split up code
Stephen Seo [Tue, 29 Mar 2022 06:02:20 +0000 (15:02 +0900)]
Refactor db_handler to use struct to split up code

Also refactored the GetID send value type.

3 years agoSymlink/adapt shared code from frontend to backend
Stephen Seo [Tue, 29 Mar 2022 05:45:49 +0000 (14:45 +0900)]
Symlink/adapt shared code from frontend to backend

3 years agoMove enum from yew_components mod to state mod
Stephen Seo [Tue, 29 Mar 2022 05:41:04 +0000 (14:41 +0900)]
Move enum from yew_components mod to state mod

Preparation for symlinking shared code into the backend project.

3 years agoUpdate Sprint 4 backlog sprint_04_day_1
Stephen Seo [Tue, 29 Mar 2022 02:22:10 +0000 (11:22 +0900)]
Update Sprint 4 backlog

3 years agobackend: Update db_handler's db spec.
Stephen Seo [Mon, 28 Mar 2022 08:13:32 +0000 (17:13 +0900)]
backend: Update db_handler's db spec.

3 years agobackend: Remove "games.date_changed" from db spec.
Stephen Seo [Mon, 28 Mar 2022 08:12:01 +0000 (17:12 +0900)]
backend: Remove "games.date_changed" from db spec.

3 years agobackend: Add "date_added" column to db spec.
Stephen Seo [Mon, 28 Mar 2022 08:10:49 +0000 (17:10 +0900)]
backend: Add "date_added" column to db spec.

3 years agobackend: Use enum to handle multiple db requests
Stephen Seo [Mon, 28 Mar 2022 07:31:53 +0000 (16:31 +0900)]
backend: Use enum to handle multiple db requests

3 years agoUpdate README.md pre_sprint_04
Stephen Seo [Mon, 28 Mar 2022 07:20:41 +0000 (16:20 +0900)]
Update README.md

3 years agoUpdate Sprint 3 backlog, create Sprint 4 backlog
Stephen Seo [Mon, 28 Mar 2022 07:19:47 +0000 (16:19 +0900)]
Update Sprint 3 backlog, create Sprint 4 backlog

3 years agoSprint 3 Retrospective, update backlogs
Stephen Seo [Mon, 28 Mar 2022 07:14:10 +0000 (16:14 +0900)]
Sprint 3 Retrospective, update backlogs

3 years agoRefactor: Replace calling JS settimeout with Rust
Stephen Seo [Wed, 23 Mar 2022 07:56:25 +0000 (16:56 +0900)]
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".

3 years agoUpdate backend_database_specification.md
Stephen Seo [Mon, 21 Mar 2022 04:25:32 +0000 (13:25 +0900)]
Update backend_database_specification.md

3 years agoImpl graceful shutdown of backend on failure sprint_03_day_5
Stephen Seo [Fri, 18 Mar 2022 14:43:15 +0000 (23:43 +0900)]
Impl graceful shutdown of backend on failure

3 years agoUpdate Sprint 3 backlog
Stephen Seo [Fri, 18 Mar 2022 10:34:29 +0000 (19:34 +0900)]
Update Sprint 3 backlog

3 years agoImpl enough backend to assign ids to players
Stephen Seo [Fri, 18 Mar 2022 10:29:38 +0000 (19:29 +0900)]
Impl enough backend to assign ids to players

3 years agoUpdate backend database specification
Stephen Seo [Fri, 18 Mar 2022 08:03:07 +0000 (17:03 +0900)]
Update backend database specification

3 years agoFix typo in backend database spec.
Stephen Seo [Fri, 18 Mar 2022 07:45:44 +0000 (16:45 +0900)]
Fix typo in backend database spec.

3 years agoMinor fix to backend database spec.
Stephen Seo [Fri, 18 Mar 2022 07:42:58 +0000 (16:42 +0900)]
Minor fix to backend database spec.

3 years agoUpdate Sprint 3 backlog
Stephen Seo [Fri, 18 Mar 2022 07:41:48 +0000 (16:41 +0900)]
Update Sprint 3 backlog

3 years agoWriteup backend database specification
Stephen Seo [Fri, 18 Mar 2022 07:39:30 +0000 (16:39 +0900)]
Writeup backend database specification

3 years agoUp. Sprint 3 backlog, update backend protocol spec
Stephen Seo [Fri, 18 Mar 2022 06:16:27 +0000 (15:16 +0900)]
Up. Sprint 3 backlog, update backend protocol spec

3 years agoUpdate Sprint 3 backlog sprint_03_day_4
Stephen Seo [Thu, 17 Mar 2022 03:07:41 +0000 (12:07 +0900)]
Update Sprint 3 backlog

3 years agoAdd retrospectives for Sprint 1, 2
Stephen Seo [Thu, 17 Mar 2022 02:45:27 +0000 (11:45 +0900)]
Add retrospectives for Sprint 1, 2

3 years agoTweak colors of Sprint 1, 2 hours
Stephen Seo [Thu, 17 Mar 2022 02:36:58 +0000 (11:36 +0900)]
Tweak colors of Sprint 1, 2 hours

3 years agoUpdate Sprint 3 backlog sprint_03_day_3
Stephen Seo [Thu, 17 Mar 2022 02:33:59 +0000 (11:33 +0900)]
Update Sprint 3 backlog

3 years agoUpdate result burndown charts for sprint 1,2
Stephen Seo [Thu, 17 Mar 2022 02:27:31 +0000 (11:27 +0900)]
Update result burndown charts for sprint 1,2

3 years agoAdd graph for Sprint 1
Stephen Seo [Wed, 16 Mar 2022 13:16:21 +0000 (22:16 +0900)]
Add graph for Sprint 1

3 years agoRefactoring/cleanup of backend
Stephen Seo [Wed, 16 Mar 2022 04:10:21 +0000 (13:10 +0900)]
Refactoring/cleanup of backend

3 years agoHave backend always return JSON String
Stephen Seo [Wed, 16 Mar 2022 04:09:07 +0000 (13:09 +0900)]
Have backend always return JSON String

3 years agoRefactorings/fixes for back-end
Stephen Seo [Wed, 16 Mar 2022 03:31:18 +0000 (12:31 +0900)]
Refactorings/fixes for back-end

3 years agoUpdate /README.md about the back-end
Stephen Seo [Wed, 16 Mar 2022 03:27:22 +0000 (12:27 +0900)]
Update /README.md about the back-end

3 years agoUpdate backend protocol, skeleton backend project
Stephen Seo [Wed, 16 Mar 2022 03:26:18 +0000 (12:26 +0900)]
Update backend protocol, skeleton backend project

3 years agoUpdate Sprint 3 backlog sprint_03_day_2
Stephen Seo [Tue, 15 Mar 2022 08:06:16 +0000 (17:06 +0900)]
Update Sprint 3 backlog

3 years agoRename deferred_helper.js -> async_js_helper.js
Stephen Seo [Tue, 15 Mar 2022 04:46:35 +0000 (13:46 +0900)]
Rename deferred_helper.js -> async_js_helper.js

3 years agoImpl async delay on AI choice
Stephen Seo [Tue, 15 Mar 2022 04:16:09 +0000 (13:16 +0900)]
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.

3 years agoUpdate Sprint 3 backlog sprint_03_day_1
Stephen Seo [Mon, 14 Mar 2022 05:38:47 +0000 (14:38 +0900)]
Update Sprint 3 backlog

3 years agoBack-end skeleton project, backend protocol spec
Stephen Seo [Mon, 14 Mar 2022 05:33:51 +0000 (14:33 +0900)]
Back-end skeleton project, backend protocol spec

3 years agoSetup dependencies for connection to backend WIP
Stephen Seo [Mon, 14 Mar 2022 04:18:11 +0000 (13:18 +0900)]
Setup dependencies for connection to backend WIP

3 years agoAdd sprint 3 backlog pre_sprint_03
Stephen Seo [Sun, 13 Mar 2022 13:15:05 +0000 (22:15 +0900)]
Add sprint 3 backlog

3 years agoUpdate backlogs/user_stories after Sprint 2
Stephen Seo [Sun, 13 Mar 2022 13:05:10 +0000 (22:05 +0900)]
Update backlogs/user_stories after Sprint 2

3 years agoReorder code to print winning move sprint_02_day_4
Stephen Seo [Thu, 10 Mar 2022 09:16:30 +0000 (18:16 +0900)]
Reorder code to print winning move

Previously, the winning move was not printed at the bottom info_text.

3 years agoUpdate Sprint 2 backlog
Stephen Seo [Thu, 10 Mar 2022 08:25:04 +0000 (17:25 +0900)]
Update Sprint 2 backlog

3 years agoFix infinite loop bug, refactorings/fixes
Stephen Seo [Thu, 10 Mar 2022 08:01:01 +0000 (17:01 +0900)]
Fix infinite loop bug, refactorings/fixes

3 years agoMore AI tweaks
Stephen Seo [Thu, 10 Mar 2022 07:44:01 +0000 (16:44 +0900)]
More AI tweaks

3 years agoTweaks to AI for correctness
Stephen Seo [Thu, 10 Mar 2022 07:39:26 +0000 (16:39 +0900)]
Tweaks to AI for correctness

3 years agoUpdate Sprint 2 backlog
Stephen Seo [Thu, 10 Mar 2022 07:19:48 +0000 (16:19 +0900)]
Update Sprint 2 backlog

3 years agoIncorporate game AI into game
Stephen Seo [Thu, 10 Mar 2022 07:17:16 +0000 (16:17 +0900)]
Incorporate game AI into game

Can select from three difficulties, and the AI makes their move when it
is their turn. AI probably still needs some tweaking..

3 years agoImpl placed token indicator, fixes/refactorings
Stephen Seo [Thu, 10 Mar 2022 06:43:03 +0000 (15:43 +0900)]
Impl placed token indicator, fixes/refactorings

3 years agoAdd root README.md sprint_02_day_3
Stephen Seo [Wed, 9 Mar 2022 13:13:53 +0000 (22:13 +0900)]
Add root README.md

3 years agoUpdate front_end/README.md about website
Stephen Seo [Wed, 9 Mar 2022 10:45:11 +0000 (19:45 +0900)]
Update front_end/README.md about website

3 years agoFix typo
Stephen Seo [Wed, 9 Mar 2022 10:29:00 +0000 (19:29 +0900)]
Fix typo

3 years agoUpdate Sprint 2 backlog
Stephen Seo [Wed, 9 Mar 2022 09:20:06 +0000 (18:20 +0900)]
Update Sprint 2 backlog

3 years agoRefactorings and linter fixes
Stephen Seo [Wed, 9 Mar 2022 09:14:01 +0000 (18:14 +0900)]
Refactorings and linter fixes

3 years agoImpl buttons indicator that won the game
Stephen Seo [Wed, 9 Mar 2022 09:10:13 +0000 (18:10 +0900)]
Impl buttons indicator that won the game

3 years agoImpl use of win/draw check, fixes
Stephen Seo [Wed, 9 Mar 2022 08:29:53 +0000 (17:29 +0900)]
Impl use of win/draw check, fixes

Also added unit tests for win/draw checks.

3 years agoFix rand not compilable for wasm, impl game logic
Stephen Seo [Wed, 9 Mar 2022 07:22:01 +0000 (16:22 +0900)]
Fix rand not compilable for wasm, impl game logic

"rand" crate was not compilable for wasm-unknown-unknown target, so an
alternative "oorandom" crate was substituted in.

Basic game win/draw detection logic added.

3 years agoUpdate sprint 2 backlog
Stephen Seo [Wed, 9 Mar 2022 06:31:29 +0000 (15:31 +0900)]
Update sprint 2 backlog

3 years agoMinor fixes/tweaks to Utility AI sprint_02_day_1 sprint_02_day_2
Stephen Seo [Mon, 7 Mar 2022 10:50:43 +0000 (19:50 +0900)]
Minor fixes/tweaks to Utility AI

3 years agoMinor fix to Utility AI code
Stephen Seo [Mon, 7 Mar 2022 08:06:45 +0000 (17:06 +0900)]
Minor fix to Utility AI code

3 years agoTweak Hard-level AI
Stephen Seo [Mon, 7 Mar 2022 07:59:18 +0000 (16:59 +0900)]
Tweak Hard-level AI

Shuffles the utilities-index pairs for the cases where there are
multiple pairs of the same utility value.

3 years agoUpdate Sprint 2 backlog, product backlog
Stephen Seo [Mon, 7 Mar 2022 05:55:41 +0000 (14:55 +0900)]
Update Sprint 2 backlog, product backlog

3 years agoMove "ai/mod.rs" to "ai.rs" (module management)
Stephen Seo [Mon, 7 Mar 2022 05:47:04 +0000 (14:47 +0900)]
Move "ai/mod.rs" to "ai.rs" (module management)

3 years agoBasic impl. of AI (enough completed to use/test)
Stephen Seo [Mon, 7 Mar 2022 05:45:57 +0000 (14:45 +0900)]
Basic impl. of AI (enough completed to use/test)

3 years agoWIP AI implementation, some fixes/tweaks to AI
Stephen Seo [Mon, 7 Mar 2022 05:35:09 +0000 (14:35 +0900)]
WIP AI implementation, some fixes/tweaks to AI

3 years agoWIP Utility based AI, some impl. progress
Stephen Seo [Mon, 7 Mar 2022 05:23:39 +0000 (14:23 +0900)]
WIP Utility based AI, some impl. progress

3 years agoUpdate Sprint 2 backlog
Stephen Seo [Mon, 7 Mar 2022 04:18:11 +0000 (13:18 +0900)]
Update Sprint 2 backlog

3 years agoMinor formatting fix
Stephen Seo [Mon, 7 Mar 2022 04:15:53 +0000 (13:15 +0900)]
Minor formatting fix

3 years agoMinor refactoring
Stephen Seo [Mon, 7 Mar 2022 04:14:57 +0000 (13:14 +0900)]
Minor refactoring

Use "From<>" instead of "Into<>" for MainMenuMessage to GameState.

3 years agoSet up API for AI choice of slot on board
Stephen Seo [Mon, 7 Mar 2022 04:12:05 +0000 (13:12 +0900)]
Set up API for AI choice of slot on board

3 years agoCreate Backlog for Sprint 2 pre_sprint_02
Stephen Seo [Sun, 6 Mar 2022 10:44:21 +0000 (19:44 +0900)]
Create Backlog for Sprint 2

3 years agoPrepare for Sprint 2 in spreadsheets
Stephen Seo [Sun, 6 Mar 2022 10:36:55 +0000 (19:36 +0900)]
Prepare for Sprint 2 in spreadsheets

Sprint 2 Goal: Utility-based AI impl.

3 years agoUpdate backlogs for additional story completed sprint_01_day_5
Stephen Seo [Fri, 4 Mar 2022 07:29:51 +0000 (16:29 +0900)]
Update backlogs for additional story completed

"Game start" User Story was implemented along side "Main menu".

3 years agoUpdate Sprint 1 backlog (day 5)
Stephen Seo [Fri, 4 Mar 2022 07:24:49 +0000 (16:24 +0900)]
Update Sprint 1 backlog (day 5)

3 years agoImpl main menu
Stephen Seo [Fri, 4 Mar 2022 07:22:30 +0000 (16:22 +0900)]
Impl main menu

Only "LocalMultiplayer" can be chosen for the game-mode since neither
AI nor Networked-Multiplayer has been implemented yet.

3 years agoUpdate Sprint 1 Backlog sprint_01_day_4
Stephen Seo [Fri, 4 Mar 2022 05:37:03 +0000 (14:37 +0900)]
Update Sprint 1 Backlog

3 years agoImpl convenience functions, refactoring
Stephen Seo [Thu, 3 Mar 2022 09:01:46 +0000 (18:01 +0900)]
Impl convenience functions, refactoring

3 years agoUpdate spreadsheets for Sprint 1 day 4
Stephen Seo [Thu, 3 Mar 2022 08:39:59 +0000 (17:39 +0900)]
Update spreadsheets for Sprint 1 day 4

3 years agoRemove NodeRef for getter, improve turn indicator
Stephen Seo [Thu, 3 Mar 2022 08:36:51 +0000 (17:36 +0900)]
Remove NodeRef for getter, improve turn indicator

All NodeRefs have been removed in favor of "getElementById".

Turn indicator is now much more obvious to see.

3 years agoReplace slot "ref" with "id"
Stephen Seo [Thu, 3 Mar 2022 05:08:35 +0000 (14:08 +0900)]
Replace slot "ref" with "id"

3 years agoSpreadsheets: one task as incomplete/blocked sprint_01_day_3
Stephen Seo [Wed, 2 Mar 2022 10:26:21 +0000 (19:26 +0900)]
Spreadsheets: one task as incomplete/blocked

"Turn logic" marked as incomplete/blocked because it will be reworked
when actual multiplayer is to be implemented.

3 years agoMinor impl: add default messages to info_texts
Stephen Seo [Wed, 2 Mar 2022 10:22:36 +0000 (19:22 +0900)]
Minor impl: add default messages to info_texts

3 years agoMinor refactoring
Stephen Seo [Wed, 2 Mar 2022 10:19:50 +0000 (19:19 +0900)]
Minor refactoring

Changed the "Msg" type of "Wrapper" from "String" to "WrapperMsg".

3 years agoUpdate spreadsheets for Sprint 1 Day 3's progress
Stephen Seo [Wed, 2 Mar 2022 08:58:22 +0000 (17:58 +0900)]
Update spreadsheets for Sprint 1 Day 3's progress

3 years agoImpl additional info text box, drop logic
Stephen Seo [Wed, 2 Mar 2022 08:51:14 +0000 (17:51 +0900)]
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.

3 years agoFix comment typo
Stephen Seo [Wed, 2 Mar 2022 07:27:19 +0000 (16:27 +0900)]
Fix comment typo

3 years agoCleanup and fixes
Stephen Seo [Wed, 2 Mar 2022 07:25:01 +0000 (16:25 +0900)]
Cleanup and fixes

Remove state::MessageBus in favor of String messages sent to Wrapper
from Slot.

Update Slot state from inside Wrapper::update such that changes should
be immediately visible per Slot (moved code from Wrapper::rendered,
fixing updates not being immediately visble).