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;