I want to check that a user entered an integer. If they didn't, I want to redirect them back to the input question:
println!("Place Your Chip");
let mut y_col: usize;
loop {
y_col = read!();
// Check if user entered in a integer or not
if y_col < 1 || y_col > 6 {
println!("Column space is 1 to 6");
continue;
} else {
y_col -= 1;
}
if game.check_column(y_col) {
println!("\t\t\t\t\t\t\t\tThe column you choose is full");
continue;
}
break;
}