@@ -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;
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
Referencia en una nueva incidencia
Block a user