1
0

Collapse duplicate when

This commit is contained in:
Hubert Van De Walle 2020-12-12 07:23:40 +01:00
parent 582f4f4b50
commit 0f2e01d6a8

View File

@ -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