You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
292 B

package day11
import (
"log"
)
func Solve1() {
changes := 1
for changes > 0 {
changes = MakeSeatChanges(4, true)
}
log.Printf("2020-12-11.01: Answer: %d\n", CountOccupiedSeats())
// Reset input
for coord, status := range rows {
if status != "." {
rows[coord] = "L"
}
}
}