Scribble Assignment#21
Open
varun-martha wants to merge 44 commits into
Open
Conversation
…ts for room setup & lobby
001 room setup lobby
- Allows the host to initiate the game from the lobby - Securely assigns a random drawer and provides secret word options - Implements payload sanitization to hide secret words from guessers
… sync, disconnects)
…or result and restart feature
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
This PR completes the core implementation of the Scribble multiplayer drawing game, delivering a fully playable end-to-end game loop. The implementation strictly relies on HTTP polling (no WebSockets) and an in-memory state architecture across the Express backend and React frontend.
1. Room Setup & Lobby
LobbyReact component which utilizes HTTP polling to continuously sync the player list and room state in real-time.2. Game Start & Drawer Selection Flow
lobbyphase to theplayingphase.3. Gameplay Interaction (Drawing & Guessing)
4. Game End, Results & Restart
ResultScreencomponent that displays the final word, highlights who successfully guessed it, and ranks players by their total accumulated score.lobbystate, ready for another round under the same room code.Contributor