Skip to content

Instantly share code, notes, and snippets.

@KingWillonius
Created January 16, 2018 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KingWillonius/57f055af7e3b0d0cfb2c52f8dd08df55 to your computer and use it in GitHub Desktop.
Save KingWillonius/57f055af7e3b0d0cfb2c52f8dd08df55 to your computer and use it in GitHub Desktop.
Cohort 22 Game
puts "Welcome to Escape from Ninja Clown Island"
puts "You must run away from all the ninjaclowns"
puts "They know karate and will kill you!!"
puts "Options: jump, move left, move right"
option = gets.chomp
case option
when "jump"
puts "You jumped over the ninjaclown"
puts "Another ninjaclown is approaching"
when "move left"
puts "You moved to the left to avoid the ninjaclown"
puts "Another ninjaclown is approaching"
when "move right"
puts "You moved to the right to avoid the ninjaclown"
puts "Another ninjaclown is approaching"
else
puts "You have been defeated by the ninjaclowns"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment