diff --git a/src/main.rs b/src/main.rs index 4052eaf..313f30a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,6 +21,15 @@ fn parse_orientation(c: char) -> Option { } } +fn parse_instruction(c: char) -> Option { + match c { + 'L' => Some(Instruction::L), + 'R' => Some(Instruction::R), + 'F' => Some(Instruction::F), + _ => None, + } +} + fn main() { let file_data = include_str!("../two_robots.txt"); }