Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
ale
2025-12-11 02:56:49 +01:00
padre dcd0aecd54
commit f5df98c544
Se han modificado 8 ficheros con 148 adiciones y 12 borrados

Ver fichero

@@ -26,6 +26,7 @@ function createGameState(roomId: string): GameState {
isGameOver: false,
turnsPassed: 0,
gameMode: 'waiting',
rematchRequests: [],
};
}

Ver fichero

@@ -27,6 +27,7 @@ export default function Home() {
leaveRoom,
startAIGame,
setError,
requestRematch,
} = useGameStore();
const [showRules, setShowRules] = useState(false);
@@ -362,8 +363,12 @@ export default function Home() {
<GameOver
winner={gameState.players.find(p => p.id === gameState.winner) || null}
players={gameState.players}
currentPlayerId={currentPlayerId}
rematchRequests={gameState.rematchRequests || []}
onPlayAgain={handlePlayAgain}
onRequestRematch={requestRematch}
onLeave={leaveRoom}
isAIGame={roomId?.startsWith('AI-') || false}
/>
)}
</div>