Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def run(path):
- path = path.split("")
- for d in path:
- if d == "d":
- hero.moveRight()
- elif d == "a":
- hero.moveLeft()
- elif d == "w":
- hero.moveUp()
- elif d == "s":
- hero.moveDown()
- run("")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement