Level and setboard clarification
Posted: 18 Mar 2011, 15:47
Hi,
I'm wondering about what should I do in my engine, with regard to this situation: WB sends me a 'level' command (say "level 40 1 0"), then I am put in 'force' mode.
Now:
1. If I receive a move, I will perform this move on the current board AND I will decrement my moves-to-go counter. Ok.
2. If, instead, I receive a 'setboard FEN' command, what should I do? I mean, the fen string includes a full move counter, should I ignore that field or am I supposed to take those moves into account in the current time session?
BTW, I also noticed that WB will always send me this counter with a value of 1, is this intended behaviour? Even in this case, I found no clear indication in the protocol specification about this, so I want to be sure I'm doing the right thing (other GUIs could well send me a fen with a full move counter > 1).
Thanks,
Edit: Well, I found this thread: http://www.open-aurec.com/wbforum/viewtopic.php?f=19&t=51380&hilit=level+setboard which explains a little, but how was the question settled?
I'm wondering about what should I do in my engine, with regard to this situation: WB sends me a 'level' command (say "level 40 1 0"), then I am put in 'force' mode.
Now:
1. If I receive a move, I will perform this move on the current board AND I will decrement my moves-to-go counter. Ok.
2. If, instead, I receive a 'setboard FEN' command, what should I do? I mean, the fen string includes a full move counter, should I ignore that field or am I supposed to take those moves into account in the current time session?
BTW, I also noticed that WB will always send me this counter with a value of 1, is this intended behaviour? Even in this case, I found no clear indication in the protocol specification about this, so I want to be sure I'm doing the right thing (other GUIs could well send me a fen with a full move counter > 1).
Thanks,
- Giorgio
Edit: Well, I found this thread: http://www.open-aurec.com/wbforum/viewtopic.php?f=19&t=51380&hilit=level+setboard which explains a little, but how was the question settled?