Created
January 16, 2018 15:10
-
-
Save KingWillonius/57f055af7e3b0d0cfb2c52f8dd08df55 to your computer and use it in GitHub Desktop.
Cohort 22 Game
This file contains hidden or 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
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