Rapid Router Level 48 Solution -

deliver_package()

Wait – that’s still long. But the that passes the level’s efficiency check is: rapid router level 48 solution

W = Warehouse (start) H = House (delivery point) # = Wall / obstacle . = Road Row 0: W . . H # . . H Row 1: . . # . . . . . Row 2: H . . . . # . H deliver_package() Wait – that’s still long

def deliver_one(): move() turn_left() move() deliver() turn_around() move() turn_left() turn_left() for i in range(2): deliver_one() for j in range(2): move() turn_right() move() turn_left() move() turn_around() move() turn_right() for j in range(2): move() turn_left() deliver_one() H Row 1:

But the actual grid can vary. The key insight: .

turn_left() for i in range(2): deliver_package() move() move() turn_right() move() turn_left() move() turn_around() move() turn_right() move() move() turn_left()

Sitemap