Skip to content

feat: implement scribble game#97

Open
shaik-mahammad-rafi01 wants to merge 7 commits into
everest-engineering:mainfrom
shaik-mahammad-rafi01:feature/scribble-lab
Open

feat: implement scribble game#97
shaik-mahammad-rafi01 wants to merge 7 commits into
everest-engineering:mainfrom
shaik-mahammad-rafi01:feature/scribble-lab

Conversation

@shaik-mahammad-rafi01
Copy link
Copy Markdown

Summary

Implements all 4 scenarios for the Scribble drawing game:

  • Room setup & lobby with host tracking, polling, and start-game validation
  • Game start with drawer assignment and deterministic word selection
  • Gameplay with drawing canvas, guess submission, case-insensitive scoring
  • Result display and restart preserving participants

Contributor

- 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
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