Add Hanabi frontend#82
Merged
Merged
Conversation
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
RoomDetailPageso STOMP destinations and the rendered screen are chosen by game.Frontend
Features
games/hanabi/HanabiPage.tsx— the full Hanabi screen: status bar, firework stacks, opponents' and own hands, hint giving, discard pile, bonus banner, end-of-game modal, and chat sidebar.games/hanabi/domain/applyDelta.ts— folds the server's action deltas over the last snapshot to reconstruct the values that are never transmitted (tokens, deck size, turn, pending bonus), mirroringHanabi.javaexactly.games/hanabi/domain/HanabiRule.ts—HanabiRule,RainbowMode.games/hanabi/dtos/HanabiDto.ts,games/hanabi/dtos/HanabiMessage.ts— mirror the backend DTOs and messages.HomePage/CreateRoomModal.tsx— adds Hanabi to the game list.Enhancement
RoomDetailPage.tsx— makes the Tichu-only logic game-agnostic.gameSlugOfderives the STOMP destination (/game/{slug}/...), a started room renders the screen for its game, and the rule editor branches per game.games/types.ts— addsGameName.HANABIand a sharedGameMessagetype.Notes
HeldCard.matches. Under the wildcard rainbow mode a single color clue cannot confirm the color, so it renders as파랑?; two or more color clues confirm rainbow and render as무지개.GAIN_CLUEandREPAIR_AND_CLUEbonuses are applied immediately server-side and never enter a pending state, so they are not surfaced in the bonus banner.[Beta].