Created
March 7, 2012 10:42
-
-
Save AJFaraday/1992470 to your computer and use it in GitHub Desktop.
Ascii screensaver (draft 1)
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
a = [] | |
bool = true | |
loop do | |
puts a.to_s | |
bool ? a.concat(['a']) : a.delete_at(0) | |
sleep 0.1 | |
if rand > 0.95 | |
bool ? bool = false : bool = true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment