2021 day 17 complete!
This commit is contained in:
parent
beca6826fd
commit
72be8f1ac5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user