Skip to content

Instantly share code, notes, and snippets.

@lyntco
Last active August 29, 2015 14:07
Show Gist options
  • Save lyntco/db87829b3969b437015a to your computer and use it in GitHub Desktop.
Save lyntco/db87829b3969b437015a to your computer and use it in GitHub Desktop.
Quiz-3 Talk to Granny

Quiz-3 Talk to Grandma


Granny's hard at hearing.

If you talk to Granny normally, she'll reply "SPEAK UP SONNY JIM"

If you talk to her in ALL CAPS, she'll reply "NO, NOT SINCE 1945"

The year will be a random year between 1930 and 1950.

If you say "BYE" to her she'll reply "What's that honey, I didn't hear you.."

When you say "BYE" three times in a row, you'll be able to leave Grandma.

You should call your method with Grandma.talk, and it should loop until you leave your Grandma.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment