Partial solution for 10.1. We've got grouping, but still need sorting and some printing cleanup.

This commit is contained in:
Anna Rose Wiggins 2018-12-12 13:18:53 -05:00
parent 06a0886b67
commit e47b6c4a45
No known key found for this signature in database
GPG key ID: 8D9ACA841015C59A
6 changed files with 328 additions and 0 deletions

View file

@ -0,0 +1,15 @@
package day10
import (
"fmt"
)
func (p *Point) DebugPrintPoint() {
fmt.Printf("p=<%d, %d>, v=<%d, %d>\n", p.X, p.Y, p.Xv, p.Yv)
}
func DebugPrintPoints(points []*Point) {
for _, point := range points {
point.DebugPrintPoint()
}
}