mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 07:10:42 -08:00
still not working hmmm
This commit is contained in:
@@ -105,7 +105,12 @@ fn print_diamonds(width:isize, count:isize) {
|
|||||||
step = -2;
|
step = -2;
|
||||||
}
|
}
|
||||||
//separate line by LINE_WIDTH or whatever
|
//separate line by LINE_WIDTH or whatever
|
||||||
println!("{}", line);
|
while line.len() >= LINE_WIDTH as usize {
|
||||||
|
let line_parts = line.split_at(LINE_WIDTH as usize);
|
||||||
|
println!("{}",line_parts.0);
|
||||||
|
|
||||||
|
line = String::from(line_parts.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user