From 592f73f68b75967f347c9ad54c1817510cae4268 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 24 Dec 2024 00:39:30 -0500 Subject: [PATCH] Part 1 --- 21/main.rb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/21/main.rb b/21/main.rb index a8ee14d..180f49e 100755 --- a/21/main.rb +++ b/21/main.rb @@ -134,23 +134,23 @@ numeric_map = { ["7", "8"]=>[">"], ["7", "9"]=>[">>"], ["7", "4"]=>["v"], - ["7", "5"]=>[">v", "v>"], - ["7", "6"]=>[">>v", "v>>"], + ["7", "5"]=>["v>"], + ["7", "6"]=>["v>>"], ["7", "1"]=>["vv"], - ["7", "2"]=>[">vv", "vv>"], - ["7", "3"]=>[">>vv", "vv>>"], + ["7", "2"]=>["vv>"], + ["7", "3"]=>["vv>>"], ["7", "0"]=>[">vvv", "v>vv", "vv>v"], ["7", "A"]=>[">>vvv"], ["8", "7"]=>["<"], ["8", "9"]=>[">"], ["8", "4"]=>["["v"], - ["8", "6"]=>[">v", "v>"], + ["8", "6"]=>["v>"], ["8", "1"]=>["["vv"], - ["8", "3"]=>[">vv", "vv>"], + ["8", "3"]=>["vv>"], ["8", "0"]=>["vvv"], - ["8", "A"]=>[">vvv", "vvv>"], + ["8", "A"]=>["vvv>"], ["9", "7"]=>["<<"], ["9", "8"]=>["<"], ["9", "4"]=>["<[">"], ["4", "6"]=>[">>"], ["4", "1"]=>["v"], - ["4", "2"]=>[">v", "v>"], - ["4", "3"]=>[">>v", "v>>"], + ["4", "2"]=>["v>"], + ["4", "3"]=>["v>>"], ["4", "0"]=>[">vv"], ["4", "A"]=>[">>vv"], ["5", "7"]=>["<^", "^<"], @@ -178,9 +178,9 @@ numeric_map = { ["5", "6"]=>[">"], ["5", "1"]=>["["v"], - ["5", "3"]=>[">v", "v>"], + ["5", "3"]=>["v>"], ["5", "0"]=>["vv"], - ["5", "A"]=>[">vv", "vv>"], + ["5", "A"]=>["vv>"], ["6", "7"]=>["<<^", "^<<"], ["6", "8"]=>["<^", "^<"], ["6", "9"]=>["^"], @@ -224,7 +224,7 @@ numeric_map = { ["0", "7"]=>["^^^<"], ["0", "8"]=>["^^^"], ["0", "9"]=>["^^^>", ">^^^"], - ["0", "4"]=>["^<^", "^^<"], + ["0", "4"]=>["^^<"], ["0", "5"]=>["^^"], ["0", "6"]=>["^^>", ">^^"], ["0", "1"]=>["^<"],