Scribble Assignment - Sainath Bottupally#136
Open
Sai-everest wants to merge 37 commits into
Open
Conversation
001 create join room
002 game start drawer
…and quickstart for draw-guess-score
- Add canvas drawing/clearing with normalized coordinates - Add guess submission with trim, case-insensitive, empty rejection - Add guess history synced via polling - Add scoreboard with 100 pts for first correct guess - Handle drawer-leave mid-round by resetting state to lobby
003 draw guess score
- Add research.md, data-model.md, contracts/api.md, quickstart.md - Fill plan.md with Technical Context, Constitution Check, Project Structure, File-Level Changes - Update agent context to reference feature 004 plan
…nd-results-restart - data-model.md: restrict endRound to playing state (H1) - tasks.md: update T005 to include API layer 409; T009 adds zero-non-drawer guard (H2, H3) - spec.md: replace secretWord/resultScreen with currentWord (M1, M2) see: speckit.analyze remediation edits for H1, H2, H3, M1, M2
- Add 'results' RoomStatus across backend and frontend - Implement endRound() service and POST /:code/end endpoint (host-only) - Implement restartGame() service and POST /:code/restart endpoint (host-only) - Auto-transition to results when all non-drawers guess correctly - Reveal currentWord in snapshot when status is 'results' - Reject joins in results state (409) - Clean up idle results rooms - Add results UI with scoreboard, guess history, final drawing - Add host-only End Round and Restart Game buttons - Extend polling to cover 'results' state
- 003-draw-guess-score: validate and update api-data-model, requirements, and tasks checklists - 004-round-results-restart: validate and update api-data-model, requirements, and tasks checklists - All 22 CHK items verified for 004; all 27 CHK items verified for 003 - All tasks marked complete; builds and tests pass (50 backend, 3 frontend)
004 round results restart
Previously submitGuess waited for all non-drawers to guess correctly before transitioning to results status. Now the room transitions to results immediately on the first correct guess, matching spec expectations. Also updates all affected spec docs (003, 004) and reflection to reflect the first-correct-guess round-end behavior.
Addresses PR review feedback: discovery/scaffold analysis was only present as research.md, not as a dedicated discovery document with explicitly listed gaps and assumptions. Each discovery.md includes: - Scaffold analysis (what the starter already had) - Gaps (incomplete behaviors) - Assumptions - Relevant files table - Resolved open questions/unknowns
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
playing, host-as-drawer assignment, deterministic secret word (rocket), drawer-only word visibility, guesser placeholders, game-page polling, mid-round reset on host leave.resultsstate, auto-end when all guessers correct, host-only manual end/restart, word reveal to all, results UI with scores/history/canvas, join rejection in results, idle cleanup extended.Contributor