diff --git a/src/Aiursoft.ChessServer/wwwroot/scripts/chessboard.js b/src/Aiursoft.ChessServer/wwwroot/scripts/chessboard.js index 648cd21..b261971 100644 --- a/src/Aiursoft.ChessServer/wwwroot/scripts/chessboard.js +++ b/src/Aiursoft.ChessServer/wwwroot/scripts/chessboard.js @@ -68,6 +68,8 @@ const initGameBoard = function (color, player, gameId) { if (game.turn() !== color) { return; } + + if (game.isGameOver()) return; var moves = game.moves({ square: square,