Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 632 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 632 Bytes

Hangman Extreme

An exercise for adding micro-tests after code is written.

Hangman

Get the code:

git clone https://github.com/pete-the-programmer/tdd-ex-micro1

Start by testing simple, yet interesting behaviours, and progressively get more complex.

For example:

  1. How many letters need to be displayed?
  2. Is there a limit to the number of letters?
  3. What happens when the user makes a guess?
  4. What happens when the user guesses the same letter twice?
  5. How can we tell between an incorrect and correct guess?
  6. What are the limits on numbers of guesses?
  7. How does the user win or lose?