Skip to content

Commit 24f9364

Browse files
committed
Update readme with engine neural network set up info
1 parent f4aafb6 commit 24f9364

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# ChessKitEngine 0.3.0
2+
Released Wednesday, March 27, 2024.
13

24
#### Improvements
35
* Add background engine processing for better performance.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@ engine.loggingEnabled = true
9595
// verbose while analyzing positions and returning evaluations.
9696
```
9797

98+
* Enable engine neural networks
99+
* Copy the relevant file in the `Resources` directory of this repo to your app's bundle, then use the engine-specific commands to provide them to the engine (where `fileURL` is a `String` of the URL of the file).
100+
* These must be called in the order shown.
101+
* For `Stockfish 15.1` (`nn-1337b1adec5b.nnue`):
102+
``` swift
103+
engine.send(command: .setoption(id: "EvalFile", value: fileURL))
104+
engine.send(command: .setoption(id: "Use NNUE", value: "true"))
105+
```
106+
* For `LeelaChessZero 0.29` (`192x15_network`):
107+
``` swift
108+
engine.send(command: .setoption(id: "WeightsFile", value: fileURL))
109+
```
110+
98111
## Supported Engines
99112

100113
The following engines are currently supported:

0 commit comments

Comments
 (0)