From 5c14f1b4d0ef03399b478c9e13e8c235e341c6da Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Thu, 30 Aug 2018 00:00:29 -0500 Subject: [PATCH] Update ChessEngine.js --- ChessEngine/js/ChessEngine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChessEngine/js/ChessEngine.js b/ChessEngine/js/ChessEngine.js index b9b98db..c42f454 100644 --- a/ChessEngine/js/ChessEngine.js +++ b/ChessEngine/js/ChessEngine.js @@ -15,7 +15,7 @@ class ChessBot{ } else if (this.difficulty === 'Easy') { nextMove = this.determineNextBestBotMoveOneMoveDeep(game, source, target); } else if (this.difficulty === 'Medium'){ - let depth = Math.floor(Math.random() * 3 + 2); + let depth = Math.floor(Math.random() * 1 + 2); console.clear(); console.log(depth + " moves ahead."); nextMove = this.determineBestBotMove(depth, game, true);