Stockfish engine API determine if its white or black move

Discussion about chess-playing software (engines, hosts, opening books, platforms, etc...)
Post Reply
dimaz2kx
Posts: 1
Joined: Wed Jan 28, 2015 1:41 pm

Stockfish engine API determine if its white or black move

Post by dimaz2kx » Wed Jan 28, 2015 1:54 pm

Hi guys, anyone have experience interfacing with stockfish API? I am using DGT e-board and stockfish engine as the AI. Stockfish requires an input in FEN notation (am not sure if it can be set to PGN). Then Stockfish determines what's the next best move based on the input it receives. But the problem is the best move isn't really accurate as stockfish doesn't know if the input (FEN) it receives is from the white or black side? How can I set stockfish to only give the best move for one side only, let's say Black side? Any help is greatly appreciated Thanks.

lucasart
Posts: 201
Joined: Mon Dec 17, 2012 1:09 pm
Contact:

Re: Stockfish engine API determine if its white or black mov

Post by lucasart » Sat Jan 31, 2015 5:06 am

"Talk is cheap. Show me the code." -- Linus Torvalds.

Post Reply