Exemple #1
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()
Exemple #2
0
def pickupChain():
	while isAtPickUp():
		PickUp()
		if isClearAhead():
			Move()
		else:
			TurnLeft()
Exemple #3
0
def BringBack(Steps):
    TurnAround()
    for i in xrange(Steps):
        Move()
    if IsClearAhead() == False:
        TurnLeft()
    Move()
    Move()
Exemple #4
0
def Solve2():
    TurnOn()
    TurnLeft()
    while IsAtEnd() != True:
        Move()
        if IsClearAhead() == False:
            TurnRight()
    TurnOff()
Exemple #5
0
def zigzag():
	moveRight()
	Move()
	TurnLeft()
	if isAtPickUp():
		PickUp()
	elif isAtDeposit():
		dropAll()
Exemple #6
0
def solve2():
  TurnOn()
  TurnLeft()
  for x in range(2):
    tripleMove()
    rightMove()  
  doubleMove()
  TurnOff()
Exemple #7
0
def solve2():
    TurnOn()
    MultiMove(2)
    TurnLeft()
    MultiMove(3)
    TurnRight()
    MultiMove(2)
    TurnRight()
    MultiMove(3)
    TurnOff()
Exemple #8
0
def solve3():	
  TurnOn()
  rightMove()
  for x in range(2):
    tripleMove()
    TurnLeft()
  pickupChain()
  doubleMove()
  dropAll()
  moveLeft()
  finish()
Exemple #9
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()
Exemple #10
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()
Exemple #11
0
def TurnRight():
    for i in xrange(3):
        TurnLeft()
Exemple #12
0
def TurnAround():
    TurnLeft()
    TurnLeft()
Exemple #13
0
def MoveDownRightDiagonal():
    TurnLeft()
    Move()
    TurnRight()
    Move()
Exemple #14
0
def TurnRight():
    TurnLeft()
    TurnLeft()
    TurnLeft()
Exemple #15
0
def moveLeft():
  TurnLeft()
  Move()