diff --git a/ChessEngine/js/ChessEngine.js b/ChessEngine/js/ChessEngine.js index 4ff1bd0..d9afd1f 100644 --- a/ChessEngine/js/ChessEngine.js +++ b/ChessEngine/js/ChessEngine.js @@ -25,7 +25,8 @@ class ChessBot{ game.move(nextMove); board.position(game.fen()); }else { - throw "difficulty not recognized" + this.difficulty; + alert("I concede, you win. Could we rematch though, please?"); + chess_main(); } }