Browse Source

day 8 part 1 test

master
Alexander Avery 1 year ago
parent
commit
33fa18b8d4
  1. 13
      day08.go
  2. 1
      main.go
  3. 13
      main_test.go

13
day08.go

@ -0,0 +1,13 @@
package main
import "io"
type day08 struct{}
func (d day08) solve1(io.Reader) string {
return "incomplete"
}
func (d day08) solve2(io.Reader) string {
return "incomplete"
}

1
main.go

@ -27,6 +27,7 @@ var (
&day05{}, &day05{},
&day06{}, &day06{},
&day07{}, &day07{},
&day08{},
} }
) )

13
main_test.go

@ -147,5 +147,18 @@ QQQJA 483`,
ans1: "6440", ans1: "6440",
ans2: "5905", ans2: "5905",
}, },
// day 8
{
inp1: `RL
AAA = (BBB, CCC)
BBB = (DDD, EEE)
CCC = (ZZZ, GGG)
DDD = (DDD, DDD)
EEE = (EEE, EEE)
GGG = (GGG, GGG)
ZZZ = (ZZZ, ZZZ)`,
ans1: "6",
},
} }
) )

Loading…
Cancel
Save