Update to Stockfish 17

This commit is contained in:
Paolo Di Lorenzo
2024-09-07 16:55:36 -04:00
parent 034648bfe9
commit 97584e1a09
5 changed files with 17 additions and 6 deletions
+3
View File
@@ -1,5 +1,8 @@
# [unreleased]
### Engine Upgrades
* Update to [*Stockfish 17*](https://stockfishchess.org/blog/2024/stockfish-17).
### Improvements
* `Engine.type` is now exposed publicly.
+1 -1
View File
@@ -30,7 +30,7 @@ public enum EngineType: Int {
/// The current version of the given engine.
public var version: String {
switch self {
case .stockfish: return "16.1"
case .stockfish: return "17"
case .lc0: return "0.30"
}
}
@@ -55,10 +55,18 @@ class BaseEngineTests: XCTestCase {
}
func testEngineSetup() {
let expectation = self.expectation(description: "Expect engine \(engine.type.name) to start up.")
let expectation = self.expectation(
description: "Expect engine \(engine.type.name) to start up."
)
engine.receiveResponse = {
if $0 == .readyok {
engine.receiveResponse = { [weak self] response in
guard let self else { return }
if case let .id(id) = response, case let .name(name) = id {
XCTAssertTrue(name.contains(engine.type.version))
}
if response == .readyok {
expectation.fulfill()
}
}
@@ -12,5 +12,5 @@ final class Lc0Tests: BaseEngineTests {
engineType = .lc0
super.setUp()
}
}