Skip to content

Implemented full scribble game#91

Open
Harathibupuri wants to merge 2 commits into
everest-engineering:mainfrom
Harathibupuri:feat/assignment
Open

Implemented full scribble game#91
Harathibupuri wants to merge 2 commits into
everest-engineering:mainfrom
Harathibupuri:feat/assignment

Conversation

@Harathibupuri
Copy link
Copy Markdown

Summary

Implemented the Scribble game features as per the assignment requirements.

Scenario 1 --> Room Setup & Lobby

  • Creator automatically becomes host (hostId stored on room).
  • Invalid room codes rejected with 404 error feedback.
  • Rooms remain isolated (in-memory Map storage).
  • Lobby auto-refreshes every 2 seconds via polling.
  • Only host can start the game Start button hidden for non-hosts.
  • Game requires at least 2 players to start (button disabled otherwise).

Scenario 2 --> Game Start & Drawer Flow

  • Player names trimmed on submission, empty/whitespace-only names rejected.
  • Drawer assigned (first participant) and secret word selected from starter list.
  • Secret word visible only to drawer in the snapshot guessers see null.
  • Drawer shown a yellow banner with the word guessers see no word info.

Scenario 3 --> Gameplay Interaction

  • Drawer can draw on HTML canvas with pointer events strokes sent to server.
  • Drawer can clear canvas via Clear Canvas button.
  • Drawing replayed on all clients via polling.
  • Guessers submit guesses via form guesses trimmed and empty ones rejected.
  • Guess comparison is case-insensitive correct guess awards 100 points.
  • Guess history synchronized to all players via 2-second polling.

Scenario 4 --> Result, Restart & Final Validation

  • Results view shows the correct word, final scores, and full guess history.
  • Host can restart the game restart returns everyone to lobby.
  • Players preserved on restart, round data (drawing, guesses, scores) cleared.

Contributor

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