Collapse duplicate when
This commit is contained in:
parent
582f4f4b50
commit
0f2e01d6a8
@ -65,8 +65,6 @@ class Day12(@Lines val input: Input<List<String>>) {
|
||||
waypointY = waypointX
|
||||
waypointX = -oldY
|
||||
}
|
||||
}
|
||||
when (dir) {
|
||||
"F" -> {
|
||||
x += waypointX * steps
|
||||
y += waypointY * steps
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user