diff --git a/thecockpit/src/app.rs b/thecockpit/src/app.rs index 13a839e..d966c9c 100644 --- a/thecockpit/src/app.rs +++ b/thecockpit/src/app.rs @@ -243,6 +243,13 @@ impl App { if self.binary_search_hint.number_to_guess == NUMBERS.len() { self.binary_search_hint.number_to_guess = 0; } + #[cfg(target_arch = "wasm32")] + match self.binary_search_hint { + 0 => ratzilla::web_sys::console::log_1(&"Secret code: 5210".into()), + 1 => ratzilla::web_sys::console::log_1(&"Secret code: 5234".into()), + 2 => ratzilla::web_sys::console::log_1(&"Secret code: 5789".into()), + _ => {} + } return; } match number.cmp(&NUMBERS[self.binary_search_hint.number_to_guess]) {