Skip to content

Instantly share code, notes, and snippets.

@canweriotnow canweriotnow/game.rb
Created Aug 23, 2014

What would you like to do? - game with no rules
colors = ["red","blue","yellow","green","pink","black"]
items = ["cell phone","pineapple","salmon","cupcake","tentacle","bow"]
parts = ["head","tail","limb","belly","nose","back"]
animals = ["horse","lion","puppy","dragon","elephant","wolf"]
puts "Choose your animal: "
animals.each_with_index do |a,i|
puts "#{i}. #{a}"
choice = gets
an = animals[choice.to_i]
c = colors[rand(6)]
i = items[rand(6)]
p = parts[rand(6)]
puts "Now draw a #{c} #{i} on your #{an}'s #{p}!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.