Skip to content

Instantly share code, notes, and snippets.

@harushimo
Last active December 10, 2015 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harushimo/4367547 to your computer and use it in GitHub Desktop.
Save harushimo/4367547 to your computer and use it in GitHub Desktop.
#This is using a regular expression to for small letter
while playAgain == '[Yy]es' or playAgain == '[Yy]'
displayIntro()
caveNumber = chooseCave()
checkCave(caveNumber)
print('Do you want to play again? (yes or no)')
playAgain = input()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment