Skip to content

[USER STORY] Logic for Word Guess game #39

@jody

Description

@jody

User Story

As a player, I want to guess a secret 5-letter word so that I can test my vocabulary and logic.

Acceptance Criteria

  • The Word Guess game allows the player up to a fixed number of guesses (N).
  • After each guess, it reports whether the guess is correct.
  • The game ends on player successfully identifying the word or after N incorrect guesses.
  • Score is based on the number of attempts remaining.

Details

  • Create a clean internal method to compare guesses.
  • Extract guess-checking logic to make it unit-testable.
  • Add JUnit tests for:
    • correct guess on first try
    • correct guess within N tries
    • invalid guess (wrong length or characters)
    • multiple incorrect guesses
    • loss after N incorrect guesses

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    GamesAssociated with Games project

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions