Ruby Web Development Project
Originally created in 2019.
- Download zip file
- Extract folder in a preferred location
- Open command line prompt window
- Navigate to the location of the “wof.rb” file
- Type in “ruby wof.rb”
- Wait for the app to boot up
- Open a browser and navigate to https://localhost:4567
- Recommended to keep sound on as web app has audio autoplay features
- The program generates a phrase from a specified file and displays a template consisting of special characters equal to the length of the phrase.
- The user attempts to guess the secret phrase, one letter at a time. If he or she guesses correctly, all instances of the letter in the template appear on their corresponding positions. If the guess is incorrect, the number of remaining attempts the user has decrements by one and they get auditory/visual feedback related to their mistake (in this case a man’s body parts gradually appearing on the gallows akin the popular game “hangman”). Additionally, the user can attempt to guess the whole word at once, but they automatically lose the game if the guess is incorrect.
- The game ends either when all the letters have been guessed correctly (win) or when the user has used all their 6 chances for an incorrect attempt (lose).
- Game
- Rules
- Credits
- Analysis
- Signup and Login
- Record of already attempted letters when in game
- Validation of input when in game
- Scoreboard
- Record of user activity
- Database connectivity
- Musical cues
- Animated feedback
- A stylish look and feel
- “Give me a challenge!” → Start new game
- “What do I have to do?” → See the rules
- “Who are you, anyway?” → Credits/About me
- “Can you analyse me?” → Scoreboard and user activity
- Feedback illustration in hangman style
- Hidden word – how many letters the user has to guess
- Field for input and button for submission
- List of already attempted letters
- Number of mistakes
- Quit to main menu
- Scoreboard – number of times user guessed the word correctly or failed to do so
- User activity – what the user did while using the app in chronological order. Legend:
- “You enjoyed the scenery for a while” – user visited home page
- “You attempted to save your friend” – user played a game
- “You tried to understand the rules of this twisted affair” – user visited the rules page
- “You were curious about the creator” – user visited the credits page
- “You checked if you are as good as you think you are” – user visited the analysis page