"Request solution S01 E07: The aisle"

Meev Posted messages 1 Registration date   Status Member 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 answers

  1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940
     

    Hello

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

    Good luck

    0
  2. 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