22 lines
352 B
Go
22 lines
352 B
Go
package day11
|
|
|
|
import (
|
|
"git.elis.nu/etu/aoc2020/utils"
|
|
)
|
|
|
|
var rows map[Coordinate]string
|
|
|
|
func ParseFile(input string) {
|
|
rows = make(map[Coordinate]string)
|
|
|
|
x := 0
|
|
// Parse file
|
|
for _, line := range utils.GetLinesFromFile("day11/" + input + ".txt") {
|
|
for y := 0; y < len(line); y++ {
|
|
rows[Coordinate{x, y}] = string(line[y])
|
|
}
|
|
|
|
x++
|
|
}
|
|
}
|