#Judje side, Goal
import JudgeInit
#IsFinished=JudgeInit.IsFinished
GetMeasurement=JudgeInit.GetMeasurement
#RobotPosition=JudgeInit.RobotPosition
SendMovement=JudgeInit.SendMovement
World=JudgeInit.World

#Robot side, Solution
import RobotSolution
RobotMove = RobotSolution.RobotMove
RobotSense = RobotSolution.RobotSense

#Judje side, Check the Solution
i=0
print ('RobotPosition[x=',JudgeInit.RobotPosition[0],', y=',JudgeInit.RobotPosition[1],']')
while not JudgeInit.IsFinished:
    RobotSense(GetMeasurement())
    RobotMove()
    print ('RobotPosition[x=',JudgeInit.RobotPosition[0],', y=',JudgeInit.RobotPosition[1],']')
    i+=1
    if i>=1000:
        JudgeInit.IsFinished=True
        print('Solution exceeded 1000 times of steps')
print ('Count of steps:', i)

