mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 22:01:54 +02:00
Really stupid AI for play for me
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user