This commit is contained in:
2022-12-22 14:18:12 +01:00
parent dc8232fee3
commit dd56a59f48
3 changed files with 369 additions and 0 deletions

18
day22/ex1/main.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import (
"aoc2022/day22/common"
"bufio"
"fmt"
"os"
)
func main() {
tileMap, instructions := common.Parse(*bufio.NewScanner(os.Stdin), false)
for _, instruction := range instructions {
instruction.Apply(&tileMap)
}
fmt.Println(tileMap.GetPassword())
}