Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.56 KB

File metadata and controls

42 lines (30 loc) · 1.56 KB

Tests checklist

Consonants vs vowel scores

  • calculate score takes 'x' and returns 2
  • calculate score takes 'y' and returns 2
  • calculate score takes 'z' and returns 2
  • calculate score takes 'a' and returns 1
  • calculate score takes 'e' and returns 1
  • calculate score takes 'i' and returns 1
  • calculate score takes 'o' and returns 1
  • calculate score takes 'u' and returns 1

Character guess validator

  • validate guess takes 'm' and 'm' and returns True
  • validate guess takes 'M' and 'm' and returns True
  • validate guess takes 'x' and 'y', and returns False

Word shuffler

  • word shuffler takes a string "monkey" and returns it shuffled
  • word shuffler takes a string "donkey" and returns it shuffled

Random word selection

  • random index generator takes 10 and is a random index between 0 and 9 inclusive
  • next index takes 1 and 10 and returns 5
  • next index takes 4 and 10 and returns 5
  • next index takes 9 and 10 and returns 0

Guess evaluator

  • Guess evaluator takes the word "monkey" and the guessed word "monkey" and returns score of 10
  • Guess evaluator takes the word "monkey" and the guessed word "monk" and returns score of 7
  • Guess evaluator takes the word "monkey" and the guessed word "kom" and returns score of 0
  • Guess evaluator takes the word "monkey" and the guessed word "mono" and returns score of 5

Reading input

  • Read input reads lines from words.txt file and returns a list of words
  • Read input reads empty file and returns empty list