adventofcode/2018/internal/day12/debug.go

21 lines
300 B
Go
Raw Normal View History

2018-12-12 23:20:33 +00:00
package day12
import (
"fmt"
)
func DebugPrintPlants(plants map[int]bool) {
low, high := getPlantBounds(plants)
for i := low; i < high+1; i++ {
fmt.Print(plantString(plants[i]))
}
fmt.Println()
}
func DebugPrintRules(rules []*Rule) {
for _, rule := range rules {
fmt.Println(rule)
}
}