feat: implement scribble game#97
Open
shaik-mahammad-rafi01 wants to merge 7 commits into
Open
Conversation
- Add hostId tracking on room creation (creator is automatically host) - Add player name validation (trim, reject empty/whitespace) - Add start game endpoint (POST /rooms/:code/start) with host-only and 2-player minimum checks - Add auto-polling to lobby (~2s interval via usePolling hook) - Show Start Game button only for host, disabled until ≥ 2 players - Navigate to game screen on successful start - Add join validation (empty code, invalid code rejected with clear feedback) - Fix API base URL (/bug -> /) - Extend Room model and RoomSnapshot types with new fields
- Split game page canvas section: drawer sees interactive DrawingCanvas with word, guessers see CanvasDisplay - Move useCallback hooks to top level for React rules of hooks compliance - GamePage watches room status to navigate between lobby/game/result views
- Move constitution to .specify/memory/constitution.md - Create per-scenario specs/ dirs (001-004) with spec.md, plan.md, tasks.md - Add reflection.md - Remove old speckit.* files from wrong locations
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
Implements all 4 scenarios for the Scribble drawing game:
Contributor