mirror of
https://github.com/neogeek23/neogeek23.github.io.git
synced 2026-02-04 02:48:17 +00:00
Update ChessEngine.js
This commit is contained in:
parent
ff4a5cf72a
commit
5c14f1b4d0
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user