No description
Find a file
2023-11-01 12:15:47 +01:00
android full project 2023-10-29 22:47:21 +01:00
lib linux & windows package lib location fix 2023-11-01 12:15:47 +01:00
linux linux & windows package lib location fix 2023-11-01 12:15:47 +01:00
src linux & windows package lib location fix 2023-11-01 12:15:47 +01:00
windows linux & windows package lib location fix 2023-11-01 12:15:47 +01:00
.gitignore full project 2023-10-29 22:47:21 +01:00
.metadata full project 2023-10-29 22:47:21 +01:00
analysis_options.yaml full project 2023-10-29 22:47:21 +01:00
CHANGELOG.md full project 2023-10-29 22:47:21 +01:00
ffigen.yaml full project 2023-10-29 22:47:21 +01:00
LICENSE full project 2023-10-29 22:47:21 +01:00
pubspec.yaml full project 2023-10-29 22:47:21 +01:00
README.md full project 2023-10-29 22:47:21 +01:00

flutter_stockfish_plugin

A Flutter plugin for Stockfish Chess engine.

The current Version is based on Stockfish 16.

Usage

final stockfish = new Stockfish()

// Listen on stdout of Stockfish engine
final stockfishSubscription = stockfish.stdout.listen((line) {
    print("received: $line");
});

// Sending UCI command to get Stockfish ready
stockfish.stdin = 'isready'

stockfish.stdin = 'position startpos moves e2e4' // set up start position
stockfish.stdin = 'go depth 20' // search bestmove with a max septh of 20

// Don't remember to dispose Stockfish when you're done.
// Make shure to dispose Stockfish when closing the app. May use WindowListener.
stockfishSubscription.cancel();
stockfish.dispose();

Goal of this fork of stockfish_chess_engine

  • Avoid limitation. This Version does not redirect stdout and stdin of the app for communication with stockfish.
  • stdin and stdout where replaced with a fakestream element.
  • Stockfish internel Logging might not work (could be fixed).

Credits

Directory src/Stockfish contains the latest current release. The code is modified to use a different communication interface. Original License of Stockfish can be found in their Github Repository.