Created
November 3, 2015 05:28
-
-
Save pedrogrande/2e436cc02daced958a54 to your computer and use it in GitHub Desktop.
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 "You enter a room with two doors. Do you open Door 1 or 2?" | |
print "> " | |
door = gets.chomp | |
if door == "1" | |
puts "You won $5000!" | |
elsif door == "2" | |
puts "You stare into the endless abyss :(" | |
else | |
puts "You failed" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment