mirror of
https://github.com/chesskit-app/chesskit-engine.git
synced 2026-05-19 15:50:35 +00:00
Update to Stockfish 16.1
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
[submodule "Sources/ChessKitEngineCore/Engines/Stockfish"]
|
||||
path = Sources/ChessKitEngineCore/Engines/Stockfish
|
||||
url = https://github.com/official-stockfish/Stockfish.git
|
||||
url = https://github.com/chesskit-app/Stockfish.git
|
||||
[submodule "Sources/ChessKitEngineCore/Engines/lc0"]
|
||||
path = Sources/ChessKitEngineCore/Engines/lc0
|
||||
url = https://github.com/chesskit-app/lc0.git
|
||||
|
||||
+7
-3
@@ -30,7 +30,12 @@ let package = Package(
|
||||
.headerSearchPath("Engines/lc0/src"),
|
||||
.headerSearchPath("Engines/lc0/subprojects/eigen-3.4.0"),
|
||||
.define("NNUE_EMBEDDING_OFF"),
|
||||
.define("NO_PEXT")
|
||||
.define("NO_PEXT"),
|
||||
.unsafeFlags([
|
||||
// suppress Stockfish warnings
|
||||
"-Wno-deprecated-declarations",
|
||||
"-Wno-shorten-64-to-32"
|
||||
])
|
||||
],
|
||||
linkerSettings: [
|
||||
.linkedLibrary("z")
|
||||
@@ -40,8 +45,7 @@ let package = Package(
|
||||
name: "ChessKitEngineTests",
|
||||
dependencies: ["ChessKitEngine"],
|
||||
resources: [
|
||||
.copy("EngineTests/Resources/192x15_network"),
|
||||
.copy("EngineTests/Resources/nn-1337b1adec5b.nnue")
|
||||
.copy("EngineTests/Resources/192x15_network")
|
||||
]
|
||||
)
|
||||
],
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -3,10 +3,10 @@
|
||||
// ChessKitEngine
|
||||
//
|
||||
|
||||
#import "lc0+engine.h"
|
||||
#include "lc0+engine.h"
|
||||
|
||||
#import "../lc0/src/chess/board.h"
|
||||
#import "../lc0/src/engine.h"
|
||||
#include "../lc0/src/chess/board.h"
|
||||
#include "../lc0/src/engine.h"
|
||||
|
||||
using namespace lczero;
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#ifndef lc0_engine_h
|
||||
#define lc0_engine_h
|
||||
|
||||
#import "engine.h"
|
||||
#import <string>
|
||||
#include "engine.h"
|
||||
#include <string>
|
||||
|
||||
/// LeelaChessZero (Lc0) implementation of `Engine`.
|
||||
class Lc0Engine: public Engine {
|
||||
|
||||
@@ -3,14 +3,16 @@
|
||||
// ChessKitEngine
|
||||
//
|
||||
|
||||
#import "stockfish+engine.h"
|
||||
#import "../Stockfish/src/_main.h"
|
||||
#import "../Stockfish/src/thread.h"
|
||||
#include "stockfish+engine.h"
|
||||
#include "../Stockfish/src/_main.h"
|
||||
#include "../Stockfish/src/thread.h"
|
||||
|
||||
using namespace Stockfish;
|
||||
|
||||
void StockfishEngine::initialize() {
|
||||
_main(1, (char* []){""});
|
||||
char empty[] = "";
|
||||
char* argv[] = { empty };
|
||||
_main(1, argv);
|
||||
}
|
||||
|
||||
void StockfishEngine::deinitialize() {
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#ifndef stockfish_engine_h
|
||||
#define stockfish_engine_h
|
||||
|
||||
#import "engine.h"
|
||||
#import <string>
|
||||
#include "engine.h"
|
||||
#include <string>
|
||||
|
||||
/// Stockfish implementation of `Engine`.
|
||||
class StockfishEngine: public Engine {
|
||||
|
||||
Submodule Sources/ChessKitEngineCore/Engines/Stockfish updated: e67cc979fd...63092f0208
Binary file not shown.
Reference in New Issue
Block a user