ChessEngine
is an open source chess engine framework for iOS. The internal ultra-strong chess engine is Stockfish.
You have multiple choices to make use of ChessEngine
framework.
/ChessEngine/ChessEngine
to your project.Just a few lines of code:
import ChessEngine
// ..some code..
let engineManager: EngineManager = EngineManager()
engineManager.delegate = self
engineManager.gameFen = someGameFen
engineManager.startAnalyzing()
required public func engineManager(_ engineManager: EngineManager, didReceiveBestMove bestMove: String?, ponderMove: String?)
optional public func engineManager(_ engineManager: EngineManager, didAnalyzeCurrentMove currentMove: String, number: Int, depth: Int)
optional public func engineManager(_ engineManager: EngineManager, didReceivePrincipalVariation pv: String)
optional public func engineManager(_ engineManager: EngineManager, didUpdateSearchingStatus searchingStatus: String)
ChessEngine framework is inspired by the open sourced project Stockfish for iOS, it’s source code can be downloaded from here. I found this project has not been updated for a long time and it’s internal engine is stockfish 6
, while the latest version is stockfish 8
. So I decided to create an iOS framework that uses stockfish 8
.
Thanks.
Stockfish for macOS can be found here stockfish-mac.
Pull requests and issues are welcomed. If the pull requests are related to Stockfish engine, please go to it’s page and make pull requests.
GNU GENERAL PUBLIC LICENSE (Version 3).
You can go to license
file to see the full version.