We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ebce4a commit 39a8870Copy full SHA for 39a8870
2024/src/day14.scala
@@ -23,7 +23,7 @@ extension (self: Int)
23
else
24
m
25
26
-case class Robot(pos: Vec2i, velocity: Vec2i)
+case class Robot(pos: Vec2i, velocity: Vec2i):
27
def stepN(n: Int = 1): Robot =
28
copy(pos = pos.copy(x = (pos.x + n * velocity.x) rem size.x, y = (pos.y + n * velocity.y) rem size.y))
29
0 commit comments