Skip to content

Instantly share code, notes, and snippets.

View StephRicardo's full-sized avatar

Stephanie Ricardo StephRicardo

  • Miami, FL
View GitHub Profile
@StephRicardo
StephRicardo / steph-repl-game-escape.rb
Last active June 25, 2021 07:30
A quick repl game using Ruby!
# 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 = "
▄████ ▄▄▄ ███▄ ▄███▓▓█████ ▒█████ ██▒ █▓▓█████ ██▀███
██▒ ▀█▒▒████▄ ▓██▒▀█▀ ██▒▓█ ▒██▒ ██▒▓██░ █▒▓█ ▓██ ██▒