Skip to content

Instantly share code, notes, and snippets.


Stephanie Ricardo StephRicardo

View GitHub Profile
StephRicardo / steph-repl-game-escape.rb
Last active May 11, 2017
A quick repl game using Ruby!
View steph-repl-game-escape.rb
# The game is a large case statement with child case statements within it. I wanted to create a story/path for the player to follow.
# At this time, since I have many different deaths to track, I stayed away from using variables for deaths.
# I tailored each death out to the path the player chose.
# In the future, I look forward to thinking about ways to make this code less repetitive.
# Before the code for the game begins, I've added variables for my game title, win, and game over message.
game_over_text = "
▄████ ▄▄▄ ███▄ ▄███▓▓█████ ▒█████ ██▒ █▓▓█████ ██▀███
██▒ ▀█▒▒████▄ ▓██▒▀█▀ ██▒▓█ ▒██▒ ██▒▓██░ █▒▓█ ▓██ ██▒
You can’t perform that action at this time.