fn create_puzzle(puzzle: &str) -> string { let mut attempts: i32 = 0; while !puzzle.is_solved() && !user.give_the_cold_shoulder() { attempts += 1; let technique = find_technique(previous_attempts[attempts-1]); if puzzle.can_recreate(technique) { let masked_puzzle = mask_puzzle(puzzle, technique); println!("try solving this masked puzzle: {}", masked_puzzle); } } "keep up the good work, the solution is just around the corner!" }