Commit graph

12 commits

Author SHA1 Message Date
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 3172af19f8 front-end/back-end: Tweaks to game AI 2022-04-27 15:02:53 +09:00
Stephen Seo 74ca3fd696 Add GPL3 Licence headers to sources 2022-04-06 20:49:54 +09:00
Stephen Seo 92f91672fa Fix infinite loop bug, refactorings/fixes 2022-03-10 17:01:34 +09:00
Stephen Seo 38e7772d4f More AI tweaks 2022-03-10 16:44:01 +09:00
Stephen Seo d8377d280a Tweaks to AI for correctness 2022-03-10 16:39:26 +09:00
Stephen Seo 89a12623b4 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..
2022-03-10 16:17:16 +09:00
Stephen Seo 9e9bb0758c 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.
2022-03-09 16:26:14 +09:00
Stephen Seo 21041132c6 Minor fixes/tweaks to Utility AI 2022-03-07 19:50:43 +09:00
Stephen Seo 14d224734f Minor fix to Utility AI code 2022-03-07 17:07:00 +09:00
Stephen Seo ec9aac8400 Tweak Hard-level AI
Shuffles the utilities-index pairs for the cases where there are
multiple pairs of the same utility value.
2022-03-07 16:59:18 +09:00
Stephen Seo d78c612587 Move "ai/mod.rs" to "ai.rs" (module management) 2022-03-07 14:47:04 +09:00
Renamed from front_end/src/ai/mod.rs (Browse further)