2021 day 17 complete!

This commit is contained in:
Brian Buller 2021-12-17 13:57:18 -06:00
parent beca6826fd
commit 72be8f1ac5
1 changed files with 3 additions and 3 deletions

View File

@ -15,10 +15,10 @@ func main() {
var maxy int
r := make(map[h.Coordinate]bool)
b := 500
for x := b * -1; x < b; x++ {
for y := b * -1; y < b; y++ {
// Let's just see if -500 to 500 is enough >.<
for x := 500 * -1; x < 500; x++ {
for y := 500 * -1; y < 500; y++ {
v := h.Coordinate{X: x, Y: y}
if m, ok := testForHit(h.Coordinate{}, v); ok {
if m > maxy {