Skip to content

Commit 0710a6b

Browse files
committed
support for sf 17.1
1 parent 48d248b commit 0710a6b

2 files changed

Lines changed: 19 additions & 18 deletions

File tree

build.zig

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn build(b: *Build) !void {
2222
const small_net = b.option([]const u8, "small-net", "Name of the small NNUE (default: \"nn-37f18f62d772.nnue\")") orelse "nn-37f18f62d772.nnue";
2323
opts.addOption([]const u8, "small-net", small_net);
2424

25-
const big_net = b.option([]const u8, "big-net", "Name of the big NNUE (default: \"nn-1111cefa1111.nnue\")") orelse "nn-1111cefa1111.nnue";
25+
const big_net = b.option([]const u8, "big-net", "Name of the big NNUE (default: \"nn-1111cefa1111.nnue\")") orelse "nn-1c0000000000.nnue";
2626
opts.addOption([]const u8, "big-net", big_net);
2727

2828
try downloadNNUE(b, small_net);
@@ -62,28 +62,29 @@ pub fn build(b: *Build) !void {
6262
exe.addCSourceFiles(.{
6363
.root = stockfish_src_path,
6464
.files = &.{
65-
"movegen.cpp",
65+
"benchmark.cpp",
66+
"bitboard.cpp",
6667
"engine.cpp",
68+
"evaluate.cpp",
69+
"main.cpp",
70+
"memory.cpp",
71+
"misc.cpp",
72+
"movegen.cpp",
73+
"movepick.cpp",
6774
"nnue/features/half_ka_v2_hm.cpp",
68-
"nnue/nnue_misc.cpp",
6975
"nnue/network.cpp",
70-
"memory.cpp",
71-
"uci.cpp",
72-
"search.cpp",
73-
"ucioption.cpp",
74-
"tt.cpp",
75-
"bitboard.cpp",
76+
"nnue/nnue_accumulator.cpp",
77+
"nnue/nnue_misc.cpp",
78+
"position.cpp",
7679
"score.cpp",
77-
"main.cpp",
80+
"search.cpp",
81+
"syzygy/tbprobe.cpp",
7882
"thread.cpp",
79-
"benchmark.cpp",
80-
"position.cpp",
81-
"movepick.cpp",
8283
"timeman.cpp",
83-
"misc.cpp",
84+
"tt.cpp",
8485
"tune.cpp",
85-
"syzygy/tbprobe.cpp",
86-
"evaluate.cpp",
86+
"uci.cpp",
87+
"ucioption.cpp",
8788
},
8889
.flags = &.{
8990
if (embed_nets) "" else "-DNNUE_EMBEDDING_OFF=1",

build.zig.zon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
.minimum_zig_version = "0.14.0",
66
.dependencies = .{
77
.Stockfish = .{
8-
.url = "https://github.com/official-stockfish/Stockfish/archive/sf_17.tar.gz",
9-
.hash = "1220d8a16d771e844df720de6eb3b2a816411eb21372d8c2ae001f82af5715f55cfc",
8+
.url = "https://github.com/official-stockfish/Stockfish/archive/sf_17.1.tar.gz",
9+
.hash = "12206bef6885b2f5998e3b5a9e33a9c949f1a70f95502ab032a399ea8e0811ab879e",
1010
},
1111
},
1212
.paths = .{

0 commit comments

Comments
 (0)