stockfish
1.8.1, released 10 months ago by arjanaswal.com
The Stockfish Chess Engine for Flutter.
What it does
Wraps the Stockfish chess engine C++ code for use in Flutter applications via Dart FFI. Enables sending UCI commands and listening to engine output streams.
AI-written summary of version 1.8.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to build a chess app in Flutter with an embedded chess engine.
- You need to communicate with the Stockfish UCI interface on Android or iOS.
Skip it when
- You need a package supporting platforms other than Android and iOS.
- You are running multiple instances simultaneously, as only one instance is supported at a time.
Strengths
- Uses Dart FFI for performance when communicating with native C++ code.
- Provides a simple ValueListenable for engine state and a Stream for stdout.
Weaknesses
- Only supports Android and iOS.
- Only one instance can be created at a time.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
iOS project must have IPHONEOS_DEPLOYMENT_TARGET >=12.0.
final stockfish = Stockfish();
stockfish.stdin = 'isready';
stockfish.stdout.listen((line) {
print(line);
});Alternatives
Packages that do the same job and could replace stockfish.
- flame
A minimalist Flutter game engine, provides a nice set of somewhat independent modules you can choose from.
95Compare - flutter_scene
A 3D game engine for Flutter built on Flutter GPU with PBR lighting and glTF support.
93Compare - forge2d
A 2D physics engine for Dart, binding to the native Box2D v3 library.
91Compare - flame_forge2d
Forge2D physics engine support and wrappers for the Flame game engine.
87Compare
Works with
Packages commonly used together with stockfish: ones it builds on, ones built on it, and its own family.