diff --git a/webapp/src/container/games/GameBoard.jsx b/webapp/src/container/games/GameBoard.jsx index f6b4bfe..437048e 100644 --- a/webapp/src/container/games/GameBoard.jsx +++ b/webapp/src/container/games/GameBoard.jsx @@ -14,7 +14,10 @@ export default function GameBoard({ username, getGame, onStoneClick, onStoneMove (cellId) => onStoneClick(game.uuid, cellId); const optionalOnStoneMove = (typeof onStoneMove !== 'function' || isPushing) ? null : - (move) => onStoneMove(game.uuid, move); + (move) => { + if (move[0] !== move[1] && game.board[move[1]] === undefined) + onStoneMove(game.uuid, move) + }; return (