Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
ale
2025-12-05 23:40:41 +01:00
padre 8234530ed7
commit 98b4bf92c6
Se han modificado 7 ficheros con 49 adiciones y 35 borrados

Ver fichero

@@ -151,7 +151,7 @@ export function calculateTilePosition(
const lastTile = side === 'right' ? board[board.length - 1] : board[0];
let position: Position;
let orientation: 'horizontal' | 'vertical' = 'horizontal';
let rotation = 0;
const rotation = 0;
if (side === 'right') {
const offset = lastTile.orientation === 'horizontal' ? tileWidth : tileHeight;

Ver fichero

@@ -163,7 +163,7 @@ io.on('connection', (socket) => {
gameRooms.set(roomId, newGameState);
io.to(roomId).emit('game-state-updated', newGameState);
} catch (error) {
} catch {
socket.emit('invalid-move', 'Invalid move');
}
});