Last active
August 29, 2018 20:41
-
-
Save AJFaraday/b9a0fe99060d9be1fc617bb7262f57be to your computer and use it in GitHub Desktop.
Long random bot
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
if((api.turn() % 10) == 0) { | |
directions = ['towardsY', 'towardsX', 'awayY', 'awayX']; | |
dir = Math.floor(Math.random() * 4); | |
api[directions[dir]](); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment