Skip to content

Assignment#19

Open
avish-everest wants to merge 9 commits into
everest-engineering:mainfrom
avish-everest:assignment
Open

Assignment#19
avish-everest wants to merge 9 commits into
everest-engineering:mainfrom
avish-everest:assignment

Conversation

@avish-everest
Copy link
Copy Markdown

@avish-everest avish-everest commented May 30, 2026

Summary

This PR introduces the Software Design Document (SDD) implementation for the Scribble Game using Speckit, covering the end-to-end game flow from room creation to game restart.

Implemented Business Scenarios

  • Room Setup & Lobby

    • Support for creating and joining rooms using unique room codes.
    • Automatic host assignment to the room creator.
    • Validation and user feedback for invalid or empty room codes.
    • Isolation of game rooms to ensure independent gameplay sessions.
    • Lobby synchronization through periodic polling (~2 seconds).
    • Host-only game start capability, enabled when at least two players are present.
  • Game Start & Drawer Assignment

    • Player name validation with trimming and rejection of empty or whitespace-only names.
    • Automatic drawer assignment to the host (or first player) at game start.
    • Clear identification of the active drawer.
    • Deterministic selection of a secret word from the starter word list.
    • Visibility of the secret word restricted to the drawer.
  • Gameplay Interaction

    • Initialization of player scores to zero at the start of the game.
    • Drawing and canvas clearing capabilities for the assigned drawer.
    • Guess submission workflow for guessers with input trimming and validation.
    • Case-insensitive guess matching against the secret word.
    • Synchronization of guess history across all players through polling.
    • Scoring mechanism awarding 100 points for correct guesses and 0 points for incorrect guesses.
  • Results & Restart Flow

    • Display of the correct word, final scores, and complete guess history at round completion.
    • Host-controlled game restart functionality.
    • Preservation of player participation across restarts.
    • Reset of round-specific state and return of all players to the lobby for a new game session.

Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant