From 466f968affa54ba014cc3d543e8334dabc12af21 Mon Sep 17 00:00:00 2001 From: Isaac Mills Date: Wed, 23 Jul 2025 10:10:42 -0600 Subject: [PATCH] Add number hints to edges --- thecockpit/src/app.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/thecockpit/src/app.rs b/thecockpit/src/app.rs index 15f75b3..1e959bc 100644 --- a/thecockpit/src/app.rs +++ b/thecockpit/src/app.rs @@ -349,6 +349,15 @@ impl Widget for &BinarySearchHint { } } + for number_hint in [0, 9] { + let number_x = area.x + (number_hint as f64 / ruler_scale) as u16; + let style = Style::default() + .fg(Color::Rgb(226, 190, 89)) + .bg(PASSWORD_BACKGROUND); + buf.set_string(number_x, area.y + 1, "|", style); + buf.set_string(number_x, area.y, format!("{}", number_hint), style); + } + if self.failed_guesses >= 30 { let guess_hint = self.range.start + ((self.range.end - self.range.start) / 2); let number_x = area.x + (guess_hint as f64 / ruler_scale) as u16;