Skip to content

Commit

Permalink
Fix var name
Browse files Browse the repository at this point in the history
  • Loading branch information
j4rs committed Dec 18, 2023
1 parent f6f558a commit 318c7f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified src/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion src/d17/d17_part_two.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def day17_part_two(input)
heat_loss, row, col, drow, dcol, moves = priority

# Destination reached
if row == grid.length - 1 && col == grid[0].length - 1 && n >= 4
if row == grid.length - 1 && col == grid[0].length - 1 && moves >= 4
min_heat_loss = heat_loss
break
end
Expand Down

0 comments on commit 318c7f9

Please sign in to comment.