8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0db14f1 commit 70012afCopy full SHA for 70012af
05/main.go
@@ -68,13 +68,7 @@ type Board struct {
68
}
69
70
func (b *Board) Ingest(l Line) {
71
- if !l.IsHorizontal() && !l.IsVertical() {
72
- // We don't care about horizontal or vertical atm.
73
- return
74
- }
75
-
76
- // This is only horizontal and vertical for now, so we just want to walk around
77
- // and fill in the counts at each coordinate the line crosses.
+ // Since we are only ever moving at 45 degree angles, this should be fine...
78
79
var dx, dy int
80
if l.Start.X < l.End.X {
0 commit comments