"Request solution S01 E07: The aisle"

Meev Posted messages 1 Registration date   Status Membre Last intervention   -  
 Beuss -

Hello or Good evening,

I was stuck during S01 E07: The beam on Amazon Future Engineer and I can't solve it.

Can you help me?

Thank you for responding as soon as possible.

2 réponses

mamiemando Posted messages 33537 Registration date   Status Modérateur Last intervention   7 927
 

Hello

Does this video solve your problem? If not, please clarify your message (statement, question, response you are at, etc.)

Good luck

0
Beuss
 

Solution S01 E07 The ray:

from robot import *
for loop in range(8):
    right()
    for loop in range(4):
        pick()
        if carryingBrick() == 1:
            left()
            drop()
            right()
        else:
            right()
            drop()
            left()
    for loop in range(2):
        left()
        pick()
        right()
        drop()
    for loop in range(2):
        right()
        pick()
        left()
        drop()

0