deliver_package()

W = Warehouse (start) H = House (delivery point) # = Wall / obstacle . = Road Row 0: W . . H # . . H Row 1: . . # . . . . . Row 2: H . . . . # . H

But Level 48 specifically wants to avoid repeating move() calls inside the loop when the distance between houses is constant. From the official solution archives and community answers, the most common correct solution for Rapid Router Level 48 (Python) is:

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()

# Rapid Router Level 48 Solution def deliver_package(): move() turn_left() move() deliver() turn_around() move() turn_left()

def go_and_deliver(): move() turn_left() move() deliver() turn_around() move() turn_left() turn_left() for step in range(2): go_and_deliver() move() move() turn_right() move() turn_left() move() turn_around() move() turn_right() move() move() turn_left() go_and_deliver()

rapid router level 48 solution

Eletrogate

2 de dezembro de 2017

A Eletrogate é uma loja virtual de componentes eletrônicos do Brasil e possui diversos produtos relacionados à Arduino, Automação, Robótica e Eletrônica em geral.

Tenha a Metodologia Eletrogate dentro da sua Escola! Conheça nosso Programa de Robótica nas Escolas!

Rapid Router Level 48 Solution [2026 Update]

deliver_package()

W = Warehouse (start) H = House (delivery point) # = Wall / obstacle . = Road Row 0: W . . H # . . H Row 1: . . # . . . . . Row 2: H . . . . # . H rapid router level 48 solution

But Level 48 specifically wants to avoid repeating move() calls inside the loop when the distance between houses is constant. From the official solution archives and community answers, the most common correct solution for Rapid Router Level 48 (Python) is: deliver_package() W = Warehouse (start) H = House

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() Row 2: H . . .

# Rapid Router Level 48 Solution def deliver_package(): move() turn_left() move() deliver() turn_around() move() turn_left()

def go_and_deliver(): move() turn_left() move() deliver() turn_around() move() turn_left() turn_left() for step in range(2): go_and_deliver() move() move() turn_right() move() turn_left() move() turn_around() move() turn_right() move() move() turn_left() go_and_deliver()

Eletrogate Robô

Assine nossa newsletter e
receba  10% OFF  na sua
primeira compra!