Scribble game implementation assignment - Ravi Bolla#142
Open
ravi-everest wants to merge 31 commits into
Open
Conversation
added 21 commits
June 18, 2026 17:56
added 8 commits
June 19, 2026 19:33
added 2 commits
June 20, 2026 18:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR completes the full Scribble game with following 4 feature scenarios.
Scenario 1 — Room Setup & Lobby: host tracking on room creation, join validation with error feedback, automatic lobby polling (~2 s), host-only start with 2-player minimum, multi-room isolation.
Scenario 2 — Game Start & Drawer Flow: player name trimming/validation, drawer assignment (host becomes drawer), deterministic secret word selection, word visible only to the drawer.
Scenario 3 — Gameplay Interaction: interactive HTML5 drawing canvas with clear action (drawer only), guess submission with trim + case-insensitive comparison, guess history synced to all players via polling, correct guess scores 100 pts.
Scenario 4 — Result, Restart & Final Validation: room transitions to completed on correct guess, secret word revealed to all players, ResultsPage shows correct word + full guess history + scores; host-only Restart returns everyone to the lobby with players and cumulative scores preserved and all round state cleared.
Each scenario has a full Spec Kit artifact set: spec.md, plan.md, research.md, data-model.md, contracts/api.md, quickstart.md, and tasks.md under specs/00N-*/.
Used Claude code to implement
Contributor