Created
November 9, 2013 17:31
-
-
Save havenwood/7387731 to your computer and use it in GitHub Desktop.
Table flip!
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 'curses' | |
def draw this, fps = 6 | |
Curses.setpos 1, 1 | |
Curses.addstr this | |
Curses.refresh | |
sleep 1.0 / fps | |
end | |
loop do | |
draw '(*_*)-|--|-' | |
draw '(/*_*)-|--|-' | |
draw '(/*_*/) -|--|-' | |
draw '(/*_*)/ _|__|_' | |
draw '(/*_*)/ ~ _|__|_' | |
draw '(/*_*)/ ~ _|__|_' | |
draw '(*_*)/ _|__|_' | |
draw '\(*_*)/ _|__|_' | |
draw '/(*_*)/ _|__|_' | |
draw '\(*_*)/ _|__|_' | |
draw '\(*_*)\ _|__|_' | |
draw ' \(*_*) _|__|_' | |
draw ' (*_*)\ _|__|_' | |
draw ' (*_*) _|__|_' | |
draw ' (*_*) _|__|_' | |
draw ' (*_*)_|__|_' | |
draw ' _|__|_(*_*)' | |
draw ' _|__|_(*_*\)' | |
draw ' -|--|-\(*_*\)' | |
draw ' -|--|- ~ \(*_*\) ' | |
draw ' -|--|- (*_*\) ' | |
draw ' -|--|- (*_*\) ' | |
draw ' -|--|- (*_*\) ' | |
draw ' -|--|-(*_*\) ' | |
draw ' -|--|-(*_*) ' | |
draw '(*_*)-|--|- ' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment