Jump to content
Felix.

Delphi and stockfish

Recommended Posts

Greetings to all,
I'm trying to create a simple Android app (using Delphi 10.4, Firemonkey) that will use stockfish engine (evaluate positions and suggest a best move).
I downloaded stockfish .so files (ELF) for Android 32/64bit, included them in my app. In my program I use LoadLibrary, it returns success (Result <> 0). I read a lot about uci protocol  (isready, ucinewgame, etc.), but now how will I call stockfish engine and pass a FEN to it? Should I use GetProcAddress? (if yes, then with which parameters?)
Has anyone a successful experience?

Thank you in advance.

Share this post


Link to post

Hi Felix,

 

For those unaware of the subject area, I assume you're talking about the chess engine Stockfish.

 

You're going to need to run a console app (stockfish) and then capture the output. For VCL apps you can use DOS Command. It's in GetIt. I'm not sure of this is available for Firemonkey.  

 

I hope this helps.

 

Steve

  • Thanks 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×