https://github.com/libbyschuknight/ruby-hangman
my attempt at a console ruby hangman
https://github.com/libbyschuknight/ruby-hangman
Last synced: 19 days ago
JSON representation
my attempt at a console ruby hangman
- Host: GitHub
- URL: https://github.com/libbyschuknight/ruby-hangman
- Owner: libbyschuknight
- Created: 2017-10-09T03:30:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-25T01:33:52.000Z (over 8 years ago)
- Last Synced: 2024-10-19T02:14:34.258Z (almost 2 years ago)
- Language: Ruby
- Size: 79.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Some requirements for Ruby hangman
- Write a hangman game (try writing some components test-first with RSpec)
- Apply OO principles from POODR etc.
- Group code reviews
User stories:
- As a hangman player, I would like to be able to start a new game of hangman
- As a hangman player, I would like to see some indication of how many letters there are in the word that I am supposed to guess
- As a hangman player, I want to submit one letter guesses and be told whether my guess is either in the word, not in the word, or already guessed
- As a hangman player, I want the game to handle bad input (like numbers, symbols, and letters I've previously guessed) gracefully and with an appropriate error message so that I am not punished unduly for mistakes
- As a hangman player, I want to see the letters I've guessed correctly revealed on the hidden word that I am trying to guess so that I can guess the word more readily
- As a hangman player, I want to see the letters I've guessed incorrectly so that I don't guess the same wrong letter again
- As a hangman player, I would like to see how many lives are remaining
- As a hangman player, I must have 1 life deducted every time I make an incorrect guess of a letter that I have not already guessed
- As a hangman player, I want the game to end when I have run out of lives
- As a hangman player, I want the game to end when I have guessed the full word