From 9f007ee46779b85516f04d3d2f81990ef298fb34 Mon Sep 17 00:00:00 2001 From: Acvaxoort Date: Tue, 17 Dec 2024 01:45:16 +0100 Subject: [PATCH] there is no turning back --- 16/main.ml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/16/main.ml b/16/main.ml index 427ae72..8abb185 100644 --- a/16/main.ml +++ b/16/main.ml @@ -108,14 +108,6 @@ let rotate_dir_left dir = | 'v' -> '>' | _ -> raise (Invalid_argument "Invalid direction") -let rotate_dir_back dir = - match dir with - | '<' -> '>' - | '>' -> '<' - | '^' -> 'v' - | 'v' -> '^' - | _ -> raise (Invalid_argument "Invalid direction") - let walk_forward state = {state with pos = add_int_pair state.pos (get_dir_vector state.dir); score = state.score + 1 }