Created
March 21, 2012 02:17
-
-
Save granolocks/2143774 to your computer and use it in GitHub Desktop.
Twister
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
# helps you play twister... | |
# yup.... | |
class Twister | |
def colors | |
%w{ red blue yellow green } | |
end | |
def left_right | |
%w{ left right } | |
end | |
def hand_foot | |
%w{ hand foot } | |
end | |
def twist | |
"Put your #{left_right[rand(2)]} #{ hand_foot[rand(2)]} on #{colors[rand(4)]}." | |
end | |
end | |
t = Twister.new | |
puts t.twist | |
puts t.twist | |
puts t.twist | |
puts t.twist | |
puts t.twist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment