Skip to content

Srinivas/scribble lab submission#126

Open
SriNandan33 wants to merge 5 commits into
everest-engineering:mainfrom
SriNandan33:srinivas/scribble-lab-submission
Open

Srinivas/scribble lab submission#126
SriNandan33 wants to merge 5 commits into
everest-engineering:mainfrom
SriNandan33:srinivas/scribble-lab-submission

Conversation

@SriNandan33

Copy link
Copy Markdown
Member

Summary

Scenario 1 — Room Setup & Lobby

Given a player wants to host or join a drawing game, When they create or join a room via a unique code, Then the creator is automatically the host; invalid/empty codes are rejected with clear feedback; rooms are fully isolated; the lobby refreshes via polling (~2s); and only the host can start the game once at least 2 players are present.

Scenario 2 — Game Start & Drawer Flow

Given a game is starting and player names are trimmed (empty/whitespace-only rejected with a message), When the first round begins, Then the host (or first player) becomes the clearly-identified drawer, and the secret word (deterministically selected from the starter list) is visible only to the drawer.

Scenario 3 — Gameplay Interaction

Given a round is active with a drawer and guessers (all scores start at 0), When the drawer draws/clears the canvas and guessers submit their guesses, Then the drawing is visible on the drawer's screen; guesses are trimmed, case-insensitively compared, and empty ones rejected; the guess history is synced to all players via polling; correct guesses score 100 (incorrect add 0).

Scenario 4 — Result, Restart & Final Validation

Given a round has ended, When the result state is displayed and the host restarts, Then all players see the correct word, final scores, and full guess history; on restart, everyone returns to the lobby with players preserved and all round state cleared.

Contributor

- Add hostId tracking and room status transitions
- Add room code validation with empty/whitespace rejection
- Add lobby auto-polling at 2s interval with silent retry
- Add host-only start game with 2-player minimum
- Include full test suite (20 backend tests passing)
- Add host badge CSS
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