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
5c14f1b4d0
commit
2d4f4f9544
@ -120,7 +120,12 @@ class ChessBot{
|
|||||||
bestValue = currentValue;
|
bestValue = currentValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return bestMove;
|
|
||||||
|
if (bestValue === 0) {
|
||||||
|
return this.determineSimplestBotMove(game, source, target);
|
||||||
|
} else {
|
||||||
|
return bestMove;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mini_max_AB(depth, game, alpha, beta, isMaximizingPlayer){
|
mini_max_AB(depth, game, alpha, beta, isMaximizingPlayer){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user