#Robot side, Solution
from JudgeInit import SendMovement
from JudgeInit import World
Step=''

LastMeasurement = ['','','','']

from random import randint

def RobotMove():
    global Step
    randvar=randint(0,3)
    #print ('random=',randvar)
    if randvar==0:
        Step='left'
    elif randvar==1:
        Step='right'
    elif randvar==2:
        Step='up'
    else:
        Step='down'
    print (SendMovement(Step))# You can use RobotMove() without print, like this
    #SendMovement(Step)

def RobotSense(Measurement):
    global World
    global LastMeasurement
    global Step
    #print (World)
    LastMeasurement=Measurement
    #Paste here your code of robot
    #print ('Robot measures:',LastMeasurement)
    #print ('Robot measures from up sensor:',LastMeasurement['up'])
    #print ('Robot measures from left sensor:',LastMeasurement['left'])
    #print ('Robot measures from right sensor:',LastMeasurement['right'])
    #print ('Robot measures from down sensor:',LastMeasurement['down'])
    pass
