Doubt about 'setboard' and 'level'

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Doubt about 'setboard' and 'level'

Postby Fermin Serrano » 10 Apr 2009, 16:07

I have a doubt about engine playing tournament level.

Lets suppose the following secuence:
Code: Select all
setboard 1rbq1rk1/1pp2pbp/p1np1np1/4p3/2PPP3/2N1BP2/PP1Q2PP/R1N1KB1R w KQ e6 0 10
level 40 5 0


As fen string says 10 moves have been played, must I assume there are only 30 moves to next time control?

and what if the order is:
Code: Select all
level 40 5 0
setboard 1rbq1rk1/1pp2pbp/p1np1np1/4p3/2PPP3/2N1BP2/PP1Q2PP/R1N1KB1R w KQ e6 0 10


must I assume there are only 30 moves left or 40?
User avatar
Fermin Serrano
 
Posts: 72
Joined: 10 Apr 2008, 18:20
Location: Madrid (Spain)

Re: Doubt about 'setboard' and 'level'

Postby H.G.Muller » 10 Apr 2009, 19:50

Currently I don't think there is any GUI that would send you a FEN with move number different from 1, so the problem does not really occur. But in principle you are right.

So if the rule does not exist yet, let us make it upp right now! :D

If you get a FEN, you should take the move number seriously, and thus subtract it from the movesPerSession of the current session to know when the next time control will be.

If you receive a level command after a FEN, you receive it during the game, as thesetboard is supposed to restore the game state of an ongoing game, and the usual rule for level commands during a game applies: it gives the number of moves and time you have from now on.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 37 guests