Exemplo n.º 1
0
def solve5():
  TurnOn()
  TurnRight()
  for x in range(5):
    zigzag()
  moveRight()
  finish()
Exemplo n.º 2
0
def solve6():
    TurnOn()
    MovePickUpSeq(3)
    TurnRight()
    MovePickUpSeq(2)
    MultiMove(2)
    MultiPutDown(5)
    TurnRight()
    MultiMove(2)
    PickUp()
    Move()
    PickUp()
    MultiMove(2)
    MultiPutDown(2)
    TurnRight()
    MultiMove(4)
    TurnRight()
    Move()
    PickUp()
    MultiMove(2)
    PutDown()
    TurnRight()
    MultiMove(2)
    TurnRight()
    Move()
    TurnOff()
Exemplo n.º 3
0
def solve7():
    TurnOn()
    TurnRight()
    Move()
    PickUp()
    Move()
    PickUp()
    MultiMove(2)
    PickUp()
    Move()
    PickUp()
    TurnLeft()
    MultiMove(3)
    PickUp()
    TurnLeft()
    Move()
    PutDown()
    Move()
    PutDown()
    Move()
    PickUp()
    Move()
    PutDown()
    MultiMove(2)
    PutDown()
    TurnAround()
    MultiMove(4)
    TurnRight()
    MultiMove(5)
    TurnRight()
    Move()
    MultiPutDown(2)
    MultiMove(2)
    TurnOff()
Exemplo n.º 4
0
def Solve0():
    TurnOn()
    TurnRight()
    while IsAtEnd() != True:
        Wall()
        Forward()
    TurnOff()
Exemplo n.º 5
0
def solve2():
  TurnOn()
  TurnLeft()
  for x in range(2):
    tripleMove()
    rightMove()  
  doubleMove()
  TurnOff()
Exemplo n.º 6
0
def solve1():
  TurnOn()
  rightMove()
  PickUp()
  Move()
  PutDown()
  TurnRight()
  finish()
Exemplo n.º 7
0
def Solve2():
    TurnOn()
    TurnLeft()
    while IsAtEnd() != True:
        Move()
        if IsClearAhead() == False:
            TurnRight()
    TurnOff()
Exemplo n.º 8
0
def solve0():
    TurnOn()
    TurnRight()
    Move()
    Move()
    TurnRight()
    Move()
    TurnOff()
Exemplo n.º 9
0
def Solve1():
    TurnOn()
    TurnRight()
    while IsAtEnd() != True:
        Move()
        Wall()
        item()
        drop()
    TurnOff()
Exemplo n.º 10
0
def Solve6():
    TurnOn()
    while IsAtEnd() != True:
        while IsClearAhead() == True:
            Forward()
        TurnRight()
        while HasPickUps() == True and IsAtDeposit() == True:
            drop()
    TurnOff()
    pass
Exemplo n.º 11
0
def solve2():
    TurnOn()
    MultiMove(2)
    TurnLeft()
    MultiMove(3)
    TurnRight()
    MultiMove(2)
    TurnRight()
    MultiMove(3)
    TurnOff()
Exemplo n.º 12
0
def solve1():
    TurnOn()
    TurnRight()
    Move()
    PickUp()
    Move()
    PutDown()
    TurnRight()
    Move()
    TurnOff()
Exemplo n.º 13
0
def Solve3():
    TurnOn()
    Move()
    for i in xrange(5):
        GoGet(i)
        BringBack(i)
        drop()
        TurnAround()
    TurnRight()
    Forward()
    TurnOff()
Exemplo n.º 14
0
def solve3():	
  TurnOn()
  rightMove()
  for x in range(2):
    tripleMove()
    TurnLeft()
  pickupChain()
  doubleMove()
  dropAll()
  moveLeft()
  finish()
Exemplo n.º 15
0
def solve4():
  TurnOn()
  TurnRight()
  tripleMove()
  moveRight()
  doubleMove()
  pickupChain()
  Move()
  dropAll()
  TurnRight()
  tripleMove()
  TurnOff()
Exemplo n.º 16
0
def solve6():
  TurnOn()
  while isClearAhead() or isClearRight():
  	if isClearAhead():
  		Move()
  	else:
  		rightMove()
  	if isAtPickUp():
  		PickUp()
  	elif isAtDeposit():
  		dropAll()
  	elif isAtEnd():
  		TurnOff()
Exemplo n.º 17
0
def Solve4():
    TurnOn()
    TurnRight()
    while IsClearRight() == False:
        Move()
    TurnRight()
    while IsAtDeposit() == False:
        Forward()
    TurnRight()
    while IsAtEnd() == False:
        while HasPickUps() == True:
            drop()
        Forward()
    TurnOff()
Exemplo n.º 18
0
def solve4():
    TurnOn()
    TurnRight()
    MultiMove(4)
    TurnRight()
    MultiMove(2)
    PickUp()
    Move()
    PickUp()
    MultiMove(2)
    PutDown()
    PutDown()
    TurnRight()
    MultiMove(3)
    TurnOff()
Exemplo n.º 19
0
def Solve5():
    TurnOn()
    TurnAround()
    Move()
    while IsAtEnd() != True:
        TurnLeft()
        Move()
        item()
        while HasPickUps() == True and IsAtDeposit() == True:
            drop()
        if IsAtEnd() == True:
            break
        TurnRight()
        Move()
    TurnOff()
Exemplo n.º 20
0
def solve5():
    TurnOn()
    TurnAround()
    MoveDownRightDiagonal()
    PickUp()
    MoveDownRightDiagonal()
    PutDown()
    MoveDownRightDiagonal()
    PickUp()
    MoveDownRightDiagonal()
    PickUp()
    MoveDownRightDiagonal()
    PutDown()
    PutDown()
    MoveDownRightDiagonal()
    TurnOff()
Exemplo n.º 21
0
def solve3():
    TurnOn()
    MultiMove(3)
    PickUp()
    TurnRight()
    for i in range(4):
        Move()
        PickUp()
    TurnRight()
    MultiMove(2)
    TurnRight()
    MultiMove(4)
    MultiPutDown(5)
    TurnAround()
    MultiMove(2)
    TurnOff()
Exemplo n.º 22
0
def Solve7():
    TurnOn()
    TurnRight()
    while IsClearAhead() == True:
        Forward()
    TurnLeft()
    while IsClearRight() == False:
        if IsClearAhead() == False:
            TurnLeft()
        Move()
        if IsAtDeposit() == False:
            item()
        drop()
    TurnRight()
    for i in xrange(4):
        Move()
    TurnRight()
    while IsAtEnd() != True:
        Move()
        while HasPickUps() == True:
            drop()
    TurnOff()
Exemplo n.º 23
0
def solve7():
  TurnOn()
  rightMove()
  pickupChain()
  Move()
  pickupChain()
  tripleMove()
  PickUp()
  moveLeft()
  for x in range(2):
    PutDown()
    Move()
  pickupChain()
  PutDown()
  doubleMove()
  PutDown()
  moveLeft()
  moveLeft()
  for x in range(2):
    tripleMove()
    rightMove()
  dropAll()
  Move()
  finish()
Exemplo n.º 24
0
def solve0():
  TurnOn()
  rightMove()
  moveRight()
  finish()