Skip to content

Commit

Permalink
Tweak day10 bounding box to be a bit better
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerwi committed Dec 13, 2018
1 parent 2681c19 commit 9b430f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions day10/day10.cr
Expand Up @@ -36,8 +36,7 @@ class Day10
# If the stars are suuuuper far apart, we know they can't possibly be letters yet.
smallest_x, largest_x = @stars.minmax_of(&.position[0])
smallest_y, largest_y = @stars.minmax_of(&.position[1])

if (largest_x - smallest_x) <= 100 && (largest_y - smallest_y) < 100
if (largest_y - smallest_y) <= 30
self.print_night_sky(
{smallest_x, largest_x},
{smallest_y, largest_y}
Expand Down

0 comments on commit 9b430f0

Please sign in to comment.