Really stupid AI for play for me

This commit is contained in:
Dragon Fire
2021-02-07 17:45:33 -05:00
parent 2995942dd5
commit 98db73bc1f
+1 -1
View File
@@ -179,7 +179,7 @@ module.exports = class ChessCommand extends Command {
break;
}
if (turn.first().content.toLowerCase() === 'play for me') {
game.aiMove(1);
game.aiMove(0);
} else {
const choice = this.parseSAN(gameState, moves, turn.first().content.toUpperCase().match(turnRegex));
const pawnMoved = gameState.pieces[choice[0]].toUpperCase() === 'P';