Skip to content

0xaww/robot_maze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

robot_maze

依赖

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()

About

robot for maze

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages