Scribble lab#144
Open
anazri-seek wants to merge 16 commits into
Open
Conversation
Document starter gaps, assumptions, and relevant files before implementation. Establish engineering principles and AI usage rules. Co-authored-by: Cursor <cursoragent@cursor.com>
Define acceptance criteria for host tracking, join validation, lobby polling, and host-only game start (Scenario 1). Co-authored-by: Cursor <cursoragent@cursor.com>
Set hostId on room creation and validate host-only game start with a minimum of two players before transitioning to playing. Co-authored-by: Cursor <cursoragent@cursor.com>
Expose POST /rooms/:code/start for host-only game start. Validate room code format and return clearer join/not-found error messages. Co-authored-by: Cursor <cursoragent@cursor.com>
Fix default base URL and extend room snapshot types with hostId. Add startGame store method backed by POST /rooms/:code/start. Co-authored-by: Cursor <cursoragent@cursor.com>
Poll room state every 2 seconds, show host badge, gate start button to host with two-player minimum, and navigate all clients to game. Co-authored-by: Cursor <cursoragent@cursor.com>
Reject empty or malformed room codes with clear messages before calling the API. Add startRoom API test coverage. Co-authored-by: Cursor <cursoragent@cursor.com>
Define acceptance criteria for name validation, drawer assignment, deterministic word selection, and drawer-only word visibility. Co-authored-by: Cursor <cursoragent@cursor.com>
Validate trimmed player names, select word deterministically from room code, and expose secretWord only to the drawer in snapshots. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Validate player names on create/join forms, poll during gameplay, and display role-specific UI including drawer-only secret word. Co-authored-by: Cursor <cursoragent@cursor.com>
Cover gameplay interaction (drawing, guesses, scoring) and result state with host-only restart back to lobby (Scenarios 3 and 4). Co-authored-by: Cursor <cursoragent@cursor.com>
Support stroke sync, canvas clear, guess submission with scoring, and host-only restart. Reveal secret word to all on result state. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Add interactive canvas with stroke sync, guess form with validation, guess history display, result panel, and host restart flow. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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
Brownfield enhancement of the Scribble starter: added Spec Kit artifacts and implemented all four lab scenarios on scribble-lab (16 commits, phase by phase).
Artifacts: discovery notes, constitution, four feature spec/plan/tasks folders (001–004), and reflection.md.
Implementation highlights:
All sync is HTTP polling; no WebSockets, DB, or auth. Builds and tests pass.
Contributor