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:
@@ -12,4 +12,4 @@ CONNECTION_STRING=
|
||||
PORT=8080
|
||||
|
||||
# path to the chess engine
|
||||
CHESS_ENGINE_PATH=
|
||||
CHESS_ENGINE_PATH=./engine/stockfish16.exe
|
||||
+2
-5
@@ -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.
Reference in New Issue
Block a user