Lower AI Level

This commit is contained in:
Dragon Fire
2021-01-23 19:59:56 -05:00
parent 033dde4ca8
commit b8c9927a21
+1 -1
View File
@@ -70,7 +70,7 @@ module.exports = class ChessCommand extends Command {
if (user.bot) {
prevPieces = Object.assign({}, game.exportJson().pieces);
const now = new Date();
game.aiMove(3);
game.aiMove(1);
const timeTaken = new Date() - now;
if (gameState.turn === 'black') blackTime -= timeTaken - 5000;
if (gameState.turn === 'white') whiteTime -= timeTaken - 5000;