Last active
August 29, 2015 14:11
-
-
Save telnicky/91f0a105f941c8e8604a to your computer and use it in GitHub Desktop.
my janky robot
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
require 'rrobots' | |
class JankyBot | |
include Robot | |
def tick(event) | |
accelerate(rand(8)) | |
turn(rand(10)) | |
fire(rand(3)) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment