mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Update js-chess-englne
This commit is contained in:
@@ -104,7 +104,7 @@ module.exports = class ChessCommand extends Command {
|
||||
if (user.bot) {
|
||||
prevPieces = Object.assign({}, game.exportJson().pieces);
|
||||
const now = new Date();
|
||||
game.aiMove(1);
|
||||
game.aiMove(2);
|
||||
const timeTaken = new Date() - now;
|
||||
if (gameState.turn === 'black') blackTime -= timeTaken - 5000;
|
||||
if (gameState.turn === 'white') whiteTime -= timeTaken - 5000;
|
||||
@@ -174,7 +174,7 @@ module.exports = class ChessCommand extends Command {
|
||||
break;
|
||||
}
|
||||
if (turn.first().content.toLowerCase() === 'play for me') {
|
||||
game.aiMove(0);
|
||||
game.aiMove(1);
|
||||
} else {
|
||||
const choice = this.parseSAN(gameState, moves, turn.first().content.toUpperCase().match(turnRegex));
|
||||
const pawnMoved = gameState.pieces[choice[0]].toUpperCase() === 'P';
|
||||
|
||||
+8
-8
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "159.3.4",
|
||||
"version": "159.3.5",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
@@ -31,9 +31,9 @@
|
||||
"dependencies": {
|
||||
"@discordjs/opus": "^0.10.0",
|
||||
"@discordjs/voice": "^0.19.0",
|
||||
"@dotenvx/dotenvx": "^1.51.4",
|
||||
"@dotenvx/dotenvx": "^1.52.0",
|
||||
"@mediapipe/face_detection": "^0.4.1646425229",
|
||||
"@napi-rs/canvas": "^0.1.88",
|
||||
"@napi-rs/canvas": "^0.1.89",
|
||||
"@skyra/gifenc": "^1.0.1",
|
||||
"@snazzah/davey": "^0.1.9",
|
||||
"@tensorflow-models/face-detection": "^1.0.3",
|
||||
@@ -41,7 +41,7 @@
|
||||
"@twemoji/parser": "^17.0.1",
|
||||
"bombsweeper.js": "^1.0.1",
|
||||
"buffer": "^6.0.3",
|
||||
"cheerio": "^1.1.2",
|
||||
"cheerio": "^1.2.0",
|
||||
"city-timezones": "^1.3.3",
|
||||
"cloc": "2.6.0-cloc",
|
||||
"common-tags": "^1.8.2",
|
||||
@@ -55,8 +55,8 @@
|
||||
"gm": "^1.25.1",
|
||||
"html-entities": "^2.6.0",
|
||||
"image-to-ascii": "^3.3.0",
|
||||
"ioredis": "^5.9.0",
|
||||
"js-chess-engine": "1.0.2",
|
||||
"ioredis": "^5.9.2",
|
||||
"js-chess-engine": "^2.1.5",
|
||||
"jszip": "^3.10.1",
|
||||
"kuroshiro": "^1.2.0",
|
||||
"kuroshiro-analyzer-kuromoji": "^1.1.0",
|
||||
@@ -71,7 +71,7 @@
|
||||
"ntcjs": "^1.1.3",
|
||||
"parse-domain": "^8.2.2",
|
||||
"pokersolver": "^2.1.4",
|
||||
"qr": "^0.5.3",
|
||||
"qr": "^0.5.4",
|
||||
"random-js": "^2.1.0",
|
||||
"sagiri": "^4.3.0",
|
||||
"semver": "^7.7.3",
|
||||
@@ -99,6 +99,6 @@
|
||||
"eslint": "^9.39.2",
|
||||
"eslint-config-amber": "^2.0.5",
|
||||
"eslint-plugin-jsonc": "^2.21.0",
|
||||
"globals": "^17.0.0"
|
||||
"globals": "^17.2.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user