Skip to content

Instantly share code, notes, and snippets.

@alexch
Created September 3, 2012 19:46
Show Gist options
  • Save alexch/3612808 to your computer and use it in GitHub Desktop.
Save alexch/3612808 to your computer and use it in GitHub Desktop.
script to display afgan tetris GP demo
#!/usr/bin/env ruby
def run delay
chars = File.read("./afgan.demo").split(//)
chars.each do |ch|
$stdout.print ch
$stdout.flush
sleep delay
end
end
run 0.0001 # faster
run 0.001 # slower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment