stockfish chess engine added

the engine is compatible wiht linux systems. If you are running on
windows add windows engine.
This commit is contained in:
Moon Patel
2023-10-13 01:14:37 +05:30
parent ea04c7eb9d
commit e87629f736
3 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -12,4 +12,4 @@ CONNECTION_STRING=
PORT=8080
# path to the chess engine
CHESS_ENGINE_PATH=
CHESS_ENGINE_PATH=./engine/stockfish16.exe
+2 -5
View File
@@ -1,10 +1,7 @@
const chess = require("chess.js");
const { Engine } = require("node-uci");
const engine = new Engine(
process.env.CHESS_ENGINE_PATH ||
"C:\\Users\\MOON\\Downloads\\stockfish-windows-x86-64-avx2\\stockfish\\stockfish-windows-x86-64-avx2.exe"
);
require("dotenv").config();
const engine = new Engine(process.env.CHESS_ENGINE_PATH || "./engine/stockfish16.exe");
engine
.init()
Binary file not shown.