Skip to content

Instantly share code, notes, and snippets.

@davidpdrsn
Created November 4, 2015 20:29
Show Gist options
  • Select an option

  • Save davidpdrsn/69674782cae8510fc0ce to your computer and use it in GitHub Desktop.

Select an option

Save davidpdrsn/69674782cae8510fc0ce to your computer and use it in GitHub Desktop.
For playing when you don't have a spinner board
sides = [
"left",
"right",
]
colors = [
"on red",
"on blue",
"on yellow",
"on green",
"up in the air",
]
body_parts = [
"foot",
"hand",
]
loop do
side = sides.sample
color = colors.sample
body_part = body_parts.sample
puts "say #{side} #{body_part} #{color}"
`say #{side} #{body_part} #{color}`
sleep 5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment