fix(matching): apply turn indicators to arcade version too
The previous commits only updated the /games/ version but not the /arcade/ version. This commit applies the same changes to the arcade version so turn indicators work properly there. Changes: - Pass game state (currentPlayer, scores, streaks) from arcade MemoryPairsGame to PageWithNav - Remove PlayerStatusBar import and usage from arcade GamePhase Now both versions use nav avatars as turn indicators. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,6 @@ import { useGameMode } from '../../../../contexts/GameModeContext'
|
||||
import { pluralizeWord } from '../../../../utils/pluralization'
|
||||
import { useMemoryPairs } from '../context/MemoryPairsContext'
|
||||
import { MemoryGrid } from './MemoryGrid'
|
||||
import { PlayerStatusBar } from './PlayerStatusBar'
|
||||
|
||||
export function GamePhase() {
|
||||
const { state, resetGame: _resetGame, activePlayers } = useMemoryPairs()
|
||||
@@ -77,8 +76,7 @@ export function GamePhase() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Player Status Bar */}
|
||||
<PlayerStatusBar />
|
||||
{/* Player Status Bar - Removed, now using nav avatars as turn indicator */}
|
||||
|
||||
{/* Memory Grid - The main game area */}
|
||||
<div
|
||||
|
||||
@@ -46,6 +46,9 @@ export function MemoryPairsGame() {
|
||||
onNewGame={() => {
|
||||
resetGame()
|
||||
}}
|
||||
currentPlayerId={state.currentPlayer}
|
||||
playerScores={state.scores}
|
||||
playerStreaks={state.consecutiveMatches}
|
||||
>
|
||||
<StandardGameLayout>
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user