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
|
waypointY = waypointX
|
||||||
waypointX = -oldY
|
waypointX = -oldY
|
||||||
}
|
}
|
||||||
}
|
|
||||||
when (dir) {
|
|
||||||
"F" -> {
|
"F" -> {
|
||||||
x += waypointX * steps
|
x += waypointX * steps
|
||||||
y += waypointY * steps
|
y += waypointY * steps
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user