Skip to content

feat: implement scribble game flow across all four scenarios#94

Open
Sreevani1034 wants to merge 2 commits into
everest-engineering:mainfrom
Sreevani1034:feat/scribble-lab
Open

feat: implement scribble game flow across all four scenarios#94
Sreevani1034 wants to merge 2 commits into
everest-engineering:mainfrom
Sreevani1034:feat/scribble-lab

Conversation

@Sreevani1034
Copy link
Copy Markdown

Fixes & Features Implemented

  • Fixed core backend bugs:

    • hostId assignment on room creation
    • snapshot now includes correct hostId
    • API base URL consistency fixed
    • schema validation issues corrected
  • Scenario 1 (Room Setup & Lobby):

    • Implemented auto-polling lobby (~2s updates)
    • Added host-only start game restriction
    • Enforced minimum 2-player requirement
  • Scenario 2 (Game Start & Drawer Flow):

    • Added name trimming and validation
    • Implemented deterministic drawer assignment
    • Secret word selection from fixed word list
    • Role-based secret word visibility (drawer only)
  • Scenario 3 (Gameplay Interaction):

    • Implemented drawing canvas with pointer-based stroke capture
    • Added clear canvas functionality
    • Added guess submission handling
    • Case-insensitive guess matching
    • Score calculation (100 for correct, 0 otherwise)
  • Scenario 4 (Results & Restart Flow):

    • Implemented results screen with final scores
    • Added round end detection logic
    • Host-only restart functionality
    • Player list preserved on restart, round state reset
  • Added UI Component:

    • DrawingCanvas component with real-time stroke capture using pointer events
  • Added Spec Kit artifacts:

    • discovery notes
    • constitution
    • specification
    • plan
    • task breakdown

Summary

Implemented full multiplayer drawing game flow across all 4 scenarios including lobby management, gameplay loop, scoring, and restart system with proper Spec Kit structure and validations.

Contributor

- Fix core bugs: hostId assignment, snapshot hostId, API base URL, schema validation
- Scenario 1: auto-polling lobby, host-only start game with min-2 check
- Scenario 2: name trimming, drawer assignment, secret word with role-based visibility
- Scenario 3: canvas drawing/clearing, guess submission, case-insensitive matching, scoring
- Scenario 4: results display, round end detection, host restart preserving players
- Add DrawingCanvas component with pointer-based stroke capture
- Add speckit project artifacts (discovery, constitution, spec, plan, tasks)
@Sreevani1034 Sreevani1034 changed the title feat: implement full game flow across all four scenarios feat: implement scribble game flow across all four scenarios Jun 4, 2026
…lection

- Add deterministicHash() function using character code hash of room code
- Use hash % participants.length for drawer index
- Use hash / participants.length % word count for word index
- Add AI usage rules to constitution, spec, and plan artifacts
- Add reflection.md and remaining scenario spec directories
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