Skip to content

Commit

Permalink
bugfix: wanted to use the kotlin positive-only-mod, but wrongly used …
Browse files Browse the repository at this point in the history
…rem instead of mod
norganos committed Dec 21, 2023

Unverified

The email in this signature doesn’t match the committer email.
1 parent 6443716 commit 214df25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/de/linkel/aoc/Day21.kt
Original file line number Diff line number Diff line change
@@ -76,7 +76,7 @@ class Day21: AbstractLinesAdventDay<Long>() {
if (it in area)
it !in rocks
else {
val p = Point(it.x.rem(area.width), it.y.rem(area.height))
val p = Point(it.x.mod(area.width), it.y.mod(area.height))
p in area && p !in rocks
}
}

0 comments on commit 214df25

Please sign in to comment.