Skip to content

Commit bc0181a

Browse files
committed
improve timer logic
1 parent 3b52d5d commit bc0181a

5 files changed

Lines changed: 183 additions & 112 deletions

File tree

Cargo.lock

Lines changed: 127 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

solitaire-game/src/solver.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ impl Plugin for Solver {
1919
Update,
2020
calculate_random_move_chances.run_if(resource_added::<FeasibleConstellations>),
2121
);
22+
#[cfg(not(target_arch = "wasm32"))]
2223
app.add_systems(
2324
Update,
2425
calculate_unique_solutions.run_if(resource_added::<FeasibleConstellations>),

solitaire-solver/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ rand = "0.10.0"
1616
[target.'cfg(target_arch = "wasm32")'.dependencies]
1717
voracious_radix_sort = { git = "https://github.com/lakwet/voracious_sort" }
1818
getrandom = {version="0.4.2", features=["wasm_js"]}
19+
wasm-timer = "0.2.5"
1920

2021
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
2122
voracious_radix_sort = { git = "https://github.com/lakwet/voracious_sort", features = ["voracious_multithread"] }

0 commit comments

Comments
 (0)