aded Tarokka deck

This commit is contained in:
Gavin McDonald
2025-04-10 11:23:59 -04:00
parent f373782538
commit 5fc5fcd486
70 changed files with 1148 additions and 963 deletions

View File

@@ -32,10 +32,10 @@ app.prepare().then(() => {
socket.emit('init', gameUpdate);
})
socket.on('flip-card', ({ gameID, cardID }: ClientUpdate) => {
console.log('Card flipped:', { gameID, cardID });
socket.on('flip-card', ({ gameID, cardIndex }: ClientUpdate) => {
console.log('Card flipped:', { gameID, cardIndex });
const gameUpdate = gameStore.flipCard(gameID, cardID);
const gameUpdate = gameStore.flipCard(gameID, cardIndex);
io.to(gameID).emit('card-flipped', gameUpdate);
});