示例#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()
示例#2
0
def solve4():
    TurnOn()
    TurnRight()
    MultiMove(4)
    TurnRight()
    MultiMove(2)
    PickUp()
    Move()
    PickUp()
    MultiMove(2)
    PutDown()
    PutDown()
    TurnRight()
    MultiMove(3)
    TurnOff()
示例#3
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()
示例#4
0
def solve5():
    TurnOn()
    TurnAround()
    MoveDownRightDiagonal()
    PickUp()
    MoveDownRightDiagonal()
    PutDown()
    MoveDownRightDiagonal()
    PickUp()
    MoveDownRightDiagonal()
    PickUp()
    MoveDownRightDiagonal()
    PutDown()
    PutDown()
    MoveDownRightDiagonal()
    TurnOff()
示例#5
0
def solve1():
  TurnOn()
  rightMove()
  PickUp()
  Move()
  PutDown()
  TurnRight()
  finish()
示例#6
0
def solve1():
    TurnOn()
    TurnRight()
    Move()
    PickUp()
    Move()
    PutDown()
    TurnRight()
    Move()
    TurnOff()
示例#7
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()
示例#8
0
文件: robot.py 项目: kseals281/cszero
def drop():
    if IsAtDeposit() == True:
        PutDown()
示例#9
0
def MultiPutDown(n):
    for i in range(n):
        PutDown()
示例#10
0
def dropAll():
	while hasPickUps():
		PutDown()