Compare commits
2 commits
1a41781aea
...
cf5b93cb0d
| Author | SHA1 | Date | |
|---|---|---|---|
| cf5b93cb0d | |||
| ea3c02262f |
1 changed files with 1 additions and 1 deletions
|
|
@ -465,8 +465,8 @@ impl<const TOWER_HEIGHT: usize> Game<TOWER_HEIGHT> {
|
|||
}
|
||||
|
||||
fn ask_tower(&self, msg: &str) -> io::Result<Input> {
|
||||
let mut res = String::new();
|
||||
loop {
|
||||
let mut res = String::new();
|
||||
print!("{msg} (enter a tower number, exit, clear or undo):");
|
||||
stdout().flush()?;
|
||||
stdin().read_line(&mut res)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue