Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • P project02
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cs2-19wi
  • project02
  • Issues
  • #2

Closed
Open
Created Dec 31, 2018 by Ethan Ordentlich@eordentlDeveloper

Spec Comments

General:

  • Add the markers for minimum, goal, and stretch goal

RandomHangmanChooser:

  • To facillitate testing -> To facilitate testing
  • Clarify getGuessesRemaining to state "how many more wrong guesses can the player make before the game ends"
  • Test for exceptions in constructor doesn't match spec
  • Passing in -1 for wordLength should yield an IllegalArgumentException in the constructor, not IllegalStateException as expected by the test
  • IllegalStateException should be tested by passing in Integer.MAX_VALUE or some large number for wordLength
  • Move mention of IllegalStateException for the word list from makeGuess to constructor
  • maxGuesses should be restricted to 1 or greater, as by the interpretation of the tests, when you reach the maximum number of guesses wrong, the game ends. If maxGuesses is set to 0, then the game immediately ends without a guess.
  • In makeGuess, not sure if you want to keep assumption of valid input, or add an exception and corresponding tests

EvilHangmanChooser:

  • Mention somewhere that '-' "alphabetically" comes before any letter
  • Mention somewhere the number of guesses the game starts with

AIHangmanGuesser:

  • Why is the second return bolded...?

Interlude: Playing A Game III:

  • How does it fair? -> How does it fare?
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking