Skip to content

Instantly share code, notes, and snippets.

@granolocks
Created March 21, 2012 02:17
Show Gist options
  • Save granolocks/2143774 to your computer and use it in GitHub Desktop.
Save granolocks/2143774 to your computer and use it in GitHub Desktop.
Twister
# 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