Partial solution for 10.1. We've got grouping, but still need sorting and some printing cleanup.
This commit is contained in:
parent
06a0886b67
commit
e47b6c4a45
6 changed files with 328 additions and 0 deletions
15
2018/internal/day10/debug.go
Normal file
15
2018/internal/day10/debug.go
Normal 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()
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue