Hi guys I have a problem with using stockfish engine which is using UCI protocol. I wanted to play black and the computer white. But so far I think that uci engine has no notion of state and it gives me the same best moves over. I wanted to know if there's a way to set UCI engine to play as black or white so when am playing as white and gives it move in FEN string notation. It will suggest a move to black.
I have the following log below:
...
option name Emergency Move Time type spin default 30 min 0 max 5000
option name Minimum Thinking Time type spin default 20 min 0 max 5000
option name Slow Mover type spin default 80 min 10 max 1000
option name UCI_Chess960 type check default false
...
uciok
setoption name Hash value 128
ucinewgame
position startpost moves Ng1f3
info depth 1 seldepth 1 score cp 82 nodes 27 nps 27000 time 1 multipv 1 pv e2e4
info depth 2 seldepth 2 score cp 9 nodes 155 nps 155000 time 1 multipv 1 pv d2d4
d7d5
info depth 3 seldepth 3 score cp 56 nodes 278 nps 278000 time 1 multipv 1 pv d2d
4 d7d5 g1f3
info depth 4 seldepth 4 score cp 8 nodes 749 nps 749000 time 1 multipv 1 pv d2d4
g8f6 g1f3 d7d6
...
stop
bestmove e2e4 ponder e7e5
Comment : I make a move e2e4 and computer makes a move e7e5
position startpos e7e5 (based on last computer move)
go infinite
wait (5sec)
bestmove e2e4 ponder e7e5
Why is it still e2e4 ponder e7e5, the same best move as the last one. How can I set it to give a best move for black player (me). What kind of commands do i need to set here? Desperately need your help on this guys. Thanks
EDITED
Guys I really appreciate your healthy discussion over this. But I only understand a few concepts regarding UCI engine.
Here's what I have understood so far. -> There is no FEN to PGN conversion because FEN is the positions of the chess pieces after a number of moves and its not possible to convert it to PGN because FEN doesn't contain the sequence necessary to be converted to PGN -> PGN on the other hand contains the moves of the players in sequence so it can easily be converted to FEN
Right now my problem is that DGTs electronic board only gives FEN where I use it as an input to our application and am still researching on how I can get PGN from it. I know Fritz shows the PGN as well as other GUI's.
Any ideas on where to proceed from here?
position moves e7e5
; thestartpos
resets the position.