Compare commits
No commits in common. "cf5b93cb0de99495e675f073c7068961d553c4ad" and "1a41781aead84e97faba1b39fc713d7dd7582382" have entirely different histories.
cf5b93cb0d
...
1a41781aea
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> {
|
fn ask_tower(&self, msg: &str) -> io::Result<Input> {
|
||||||
loop {
|
|
||||||
let mut res = String::new();
|
let mut res = String::new();
|
||||||
|
loop {
|
||||||
print!("{msg} (enter a tower number, exit, clear or undo):");
|
print!("{msg} (enter a tower number, exit, clear or undo):");
|
||||||
stdout().flush()?;
|
stdout().flush()?;
|
||||||
stdin().read_line(&mut res)?;
|
stdin().read_line(&mut res)?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue