Solution for 12.1.

This commit is contained in:
Anna Rose Wiggins 2018-12-12 18:20:33 -05:00
parent 2d71871cf4
commit fbd7c8fb00
No known key found for this signature in database
GPG key ID: 8D9ACA841015C59A
4 changed files with 163 additions and 0 deletions

View file

@ -0,0 +1,20 @@
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)
}
}