Skip to content

feat: raise MAX_PLAYERS to 50, per-game interactionType#622

Open
wyne wants to merge 1 commit into
mainfrom
feat/large-player-count
Open

feat: raise MAX_PLAYERS to 50, per-game interactionType#622
wyne wants to merge 1 commit into
mainfrom
feat/large-player-count

Conversation

@wyne

@wyne wyne commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Raises MAX_PLAYERS from 20 → 50; adds MAX_PLAYERS_FLEXBOX = 12 constant (threshold above which Dial will be enforced, wired up in a follow-on PR)
  • Adds interactionType?: InteractionType to GameState so each game can have its own gesture setting independent of the global default
  • Adds setGameInteractionType Redux action to GamesSlice
  • Updates selectInteractionType(state, gameId?) to check the game-level setting first, falling back to the global SettingsSlice value
  • GameOptionsButton now dispatches setGameInteractionType (per-game) instead of the global setInteractionType; reads gesture type via the updated selector
  • GameScreen, FlexboxTile, and useGestureHint all pass currentGameId to selectInteractionType

Test plan

  • Switch gesture type on game A → game B retains its own gesture type
  • New games inherit the global default (no interactionType on the game entity)
  • All existing tests pass (312 tests, 33 suites)

🤖 Generated with Claude Code

- MAX_PLAYERS: 20 → 50; add MAX_PLAYERS_FLEXBOX = 12 constant
- Add interactionType?: InteractionType to GameState interface
- Add setGameInteractionType reducer to GamesSlice
- selectInteractionType now accepts optional gameId — checks game-level
  setting first, falls back to global SettingsSlice value
- GameOptionsButton dispatches setGameInteractionType (per-game) instead
  of setInteractionType (global); reads type via updated selector
- GameScreen, FlexboxTile, useGestureHint all pass currentGameId to
  selectInteractionType so they reflect per-game gesture choice
- Update GameOptionsButton test store to include games reducer
- Add selector tests for game-level override and fallback behavior

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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