2021 day 17 complete!
This commit is contained in:
parent
beca6826fd
commit
72be8f1ac5
@ -15,10 +15,10 @@ func main() {
|
|||||||
|
|
||||||
var maxy int
|
var maxy int
|
||||||
r := make(map[h.Coordinate]bool)
|
r := make(map[h.Coordinate]bool)
|
||||||
b := 500
|
|
||||||
|
|
||||||
for x := b * -1; x < b; x++ {
|
// Let's just see if -500 to 500 is enough >.<
|
||||||
for y := b * -1; y < b; y++ {
|
for x := 500 * -1; x < 500; x++ {
|
||||||
|
for y := 500 * -1; y < 500; y++ {
|
||||||
v := h.Coordinate{X: x, Y: y}
|
v := h.Coordinate{X: x, Y: y}
|
||||||
if m, ok := testForHit(h.Coordinate{}, v); ok {
|
if m, ok := testForHit(h.Coordinate{}, v); ok {
|
||||||
if m > maxy {
|
if m > maxy {
|
||||||
|
Loading…
Reference in New Issue
Block a user