diff --git a/14/main.go b/14/main.go index 0156ac1..ce71d2a 100644 --- a/14/main.go +++ b/14/main.go @@ -50,6 +50,7 @@ func partOne() { // eat empty line scanner.Scan() + // parse rules rulemap := map[string][]string{} for scanner.Scan() { rule := strings.Split(scanner.Text(), " -> ") @@ -111,6 +112,7 @@ func partTwo() { // eat empty line scanner.Scan() + // parse rules rulemap := map[string][]string{} for scanner.Scan() { rule := strings.Split(scanner.Text(), " -> ")