Last active
August 29, 2015 14:00
-
-
Save tallenaz/11007681 to your computer and use it in GitHub Desktop.
This file contains 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
# a port of | |
# archive.org/stream/Gortek_and_the_Microchips_1984_Commodore#page/n35/mode/1up | |
# along with help from | |
# patshaughnessy.net/2012/2/29/the-joke-is-on-us-how-ruby-1-9-supports-the-goto-statement | |
__label__(:wrong) | |
puts "WHAT IS THIS WORD -- SIBAC" | |
input = gets.chomp | |
__goto__(:right) if input == "BASIC" | |
__goto__(:wrong) | |
__label__(:right) | |
puts "CORRECT" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment