python2
pillow
python setup.py install
from robot_maze import *
robot = Robot()
robot.move = {"up":"U","down":"D","left":"L","right":"R"}
while not robot.all_finish:
try:
next_step = robot.next_step()
if #success:
robot.set_point(8)
elif #wall:
robot.set_point(0)
elif #path:
robot.set_point(1)
except Exception as e:
print(str(e))
print("output:",robot.min_output)
from robot_maze import *
robot = Robot()
robot.help()