Created
July 23, 2017 10:49
-
-
Save tawanda-profuse/955d677a8d72ca0153d8d80ecbcc4004 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
permat = 0 | |
katasandi = "Abracadabra" | |
while true: | |
hero.moveRight() | |
hero.moveUp(2) | |
enemy = hero.findNearestEnemy() | |
if enemy: hero.attack (enemy) | |
if enemy: hero.attack (enemy) | |
hero.moveLeft() | |
hero.moveUp(2) | |
hero.moveRight(2) | |
hero.moveUp() | |
permat = permat + 1 | |
hero.moveDown() | |
hero.moveRight() | |
hero.moveDown(2) | |
hero.say(permat) | |
hero.moveDown(2) | |
hero.say(katasandi) | |
hero.moveRight(2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment