]> git.seodisparate.com - EN605.607.81.SP22_ASDM_Project/commit
Fix rand not compilable for wasm, impl game logic
authorStephen Seo <seo.disparate@gmail.com>
Wed, 9 Mar 2022 07:22:01 +0000 (16:22 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Wed, 9 Mar 2022 07:26:14 +0000 (16:26 +0900)
commit9e9bb0758c04e18ce98d0225ad7100197900471b
treeb04d17f47c8047e7686171d952c04b1a091f1548
parent23894412072da5be319fde2f9f2947d412bc3078
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.
front_end/Cargo.lock
front_end/Cargo.toml
front_end/src/ai.rs
front_end/src/game_logic.rs [new file with mode: 0644]
front_end/src/main.rs
front_end/src/random_helper.rs [new file with mode: 0644]