Moving right along
This commit is contained in:
22
2019/day17/main.go
Normal file
22
2019/day17/main.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
intcode "git.bullercodeworks.com/brian/adventofcode/2019/intcode-processor"
|
||||
helpers "git.bullercodeworks.com/brian/adventofcode/helpers"
|
||||
)
|
||||
|
||||
var layout [][]byte
|
||||
|
||||
func main() {
|
||||
pt := helpers.GetArgNumber(1)
|
||||
prog := intcode.ReadIntCodeFile("input")
|
||||
|
||||
if pt == "1" {
|
||||
part1(prog)
|
||||
} else if pt == "walk" {
|
||||
part1(prog)
|
||||
walk()
|
||||
} else {
|
||||
part2(prog)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user