Print secret code to console :|
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Isaac Mills 2025-07-22 18:24:46 -06:00
parent 3ab223b31c
commit 821fe2d8d8
Signed by: fnmain
GPG key ID: B67D7410F33A0F61

View file

@ -244,7 +244,7 @@ impl App {
self.binary_search_hint.number_to_guess = 0; self.binary_search_hint.number_to_guess = 0;
} }
#[cfg(target_arch = "wasm32")] #[cfg(target_arch = "wasm32")]
match self.binary_search_hint { match self.binary_search_hint.number_to_guess {
0 => ratzilla::web_sys::console::log_1(&"Secret code: 5210".into()), 0 => ratzilla::web_sys::console::log_1(&"Secret code: 5210".into()),
1 => ratzilla::web_sys::console::log_1(&"Secret code: 5234".into()), 1 => ratzilla::web_sys::console::log_1(&"Secret code: 5234".into()),
2 => ratzilla::web_sys::console::log_1(&"Secret code: 5789".into()), 2 => ratzilla::web_sys::console::log_1(&"Secret code: 5789".into()),