mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-27 13:50:32 +01:00
Implement 2019 day 11
This commit is contained in:
@@ -48,7 +48,7 @@ def part2(data: TextIO) -> int:
|
||||
dy = ys - cy
|
||||
|
||||
angles = numpy.arctan2(dy, dx)
|
||||
distances = numpy.abs(numpy.copy(dx)) + numpy.abs(numpy.copy(dy))
|
||||
distances = numpy.abs(dx) + numpy.abs(dy)
|
||||
|
||||
to_shoot = defaultdict(list)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user