19 lines
287 B
Go
19 lines
287 B
Go
package main
|
|
|
|
import (
|
|
"aoc2022/day22/common"
|
|
"bufio"
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
tileMap, instructions := common.Parse(*bufio.NewScanner(os.Stdin), true)
|
|
|
|
for _, instruction := range instructions {
|
|
instruction.Apply(&tileMap)
|
|
}
|
|
|
|
fmt.Println(tileMap.GetPassword())
|
|
}
|