Skip to content

Instantly share code, notes, and snippets.

@SoxFace
Forked from epoch/bob.md
Last active August 29, 2015 14:14
Show Gist options
  • Save SoxFace/014d4165c196cd54f92a to your computer and use it in GitHub Desktop.
Save SoxFace/014d4165c196cd54f92a to your computer and use it in GitHub Desktop.

Bob

Bob is a lackadaisical teenager. In conversation, his responses are very limited.

He answers 'Sure.' if you ask him a question. He answers 'Whatever.' if you tell him something. He answers 'Woah, chill out!' if you yell at him (ALL CAPS). He says 'Fine. Be that way!' if you address him without actually saying anything.

Write Bob so that you can have an interactive conversation with him.

Hints

gets, get string is the opposite of puts put string.

Notice that when you type "Something" and then hit enter, you get the string "Something\n"

loop do
  # talk to Bob here
end

Extensions

l33t sP34k

Bob, inspired by the 90s, is bringing back "l33t sP34k", and he'll teach you how to do it. Start any sentence with "Bro, ", and he'll translate the rest of it into l33t sP34k for you.

In brief:

  • Several vowels are always replaced with numbers: a = 4, e = 3, i = 1, o = 0
  • Words that start with a consonant start with lower case
  • Consonants after the first letter alternate upper and lower case, except the alternation starts over with lowercase after a digit (ex: sCh00l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment