diff --git a/day12.py b/day12.py index b9fc960..1acd333 100644 --- a/day12.py +++ b/day12.py @@ -48,8 +48,7 @@ def moveWaypoint(instruction, posShipX, posShipY, posWaypointX, posWaypointY): if where == 'F': posShipX += posWaypointX * dist posShipY += posWaypointY * dist - - if where == 'N': + elif where == 'N': posWaypointY -= dist elif where == 'S': posWaypointY += dist