ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stockfish, info currmove and bad UCI practice
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Ronald de Man



Joined: 28 Feb 2012
Posts: 841

PostPost subject: Re: Stockfish, info currmove and bad UCI practice    Posted: Sat Apr 21, 2012 3:09 am Reply to topic Reply with quote

hgm wrote:
The specs say nothing about for which purpose commands are intended.

Well, according to this document:
Quote:
info
the engine wants to send infos to the GUI. This should be done whenever one of the info has changed.
The engine can send only selected infos and multiple infos can be send with one info command,
e.g. "info currmove e2e4 currmovenumber 1" or
"info depth 12 nodes 123456 nps 100000".
Also all infos belonging to the pv should be sent together
e.g. "info depth 2 score cp 214 time 1242 nodes 2124 nps 34928 pv e2e4 e7e5 g1f3"
I suggest to start sending "currmove", "currmovenumber", "currline" and "refutation" only after one second
to avoid too much traffic.

(...)
* currmove
currently searching this move

So, the purpose of the "info" command is merely to provide the user with information, e.g. about the move currently being searched. It is certainly not intended to provide the GUI with a list of legal moves.

Sure you can tell me that you don't care what the protocol author thinks you should do with the information you get. However, relying on behavior not required by the protocol is simply broken.

For regular chess your problem is easy to fix: just let the GUI generate the legal moves. You can then use any info you get from the engine to improve the sorting of moves or whatever. If you don't get that information in time, then so be it.

For variants, I am sure engine authors will want to accomodate for your wishes. Just come up with a proper protocol extension that does what you need.
Back to top
View user's profile Send private message
Display posts from previous:   
Subject Author Date/Time
Stockfish, info currmove and bad UCI practice H.G.Muller Fri Apr 20, 2012 8:00 am
      Re: Stockfish, info currmove and bad UCI practice Martin Sedlak Fri Apr 20, 2012 8:12 am
            Re: Stockfish, info currmove and bad UCI practice H.G.Muller Fri Apr 20, 2012 9:36 am
                  Re: Stockfish, info currmove and bad UCI practice Martin Sedlak Fri Apr 20, 2012 10:25 am
      Re: Stockfish, info currmove and bad UCI practice Uri Blass Fri Apr 20, 2012 10:13 am
            Re: Stockfish, info currmove and bad UCI practice Martin Sedlak Fri Apr 20, 2012 10:38 am
                  Re: Stockfish, info currmove and bad UCI practice H.G.Muller Fri Apr 20, 2012 10:55 am
                        Re: Stockfish, info currmove and bad UCI practice Martin Sedlak Fri Apr 20, 2012 11:37 am
                              Re: Stockfish, info currmove and bad UCI practice H.G.Muller Fri Apr 20, 2012 5:32 pm
                                    Re: Stockfish, info currmove and bad UCI practice Ronald de Man Fri Apr 20, 2012 6:49 pm
                                          Re: Stockfish, info currmove and bad UCI practice H.G.Muller Fri Apr 20, 2012 8:46 pm
                                                Re: Stockfish, info currmove and bad UCI practice Ronald de Man Sat Apr 21, 2012 3:09 am
                                                      Re: Stockfish, info currmove and bad UCI practice H.G.Muller Sat Apr 21, 2012 10:35 am
                                                            Re: Stockfish, info currmove and bad UCI practice Ronald de Man Sat Apr 21, 2012 11:36 am
                                                                  Re: Stockfish, info currmove and bad UCI practice H.G.Muller Sat Apr 21, 2012 6:14 pm
                                                                        Re: Stockfish, info currmove and bad UCI practice Ronald de Man Sun Apr 22, 2012 1:22 am
                                                                              Re: Stockfish, info currmove and bad UCI practice Uri Blass Sun Apr 22, 2012 6:40 am
                                                                                    Re: Stockfish, info currmove and bad UCI practice H.G.Muller Sun Apr 22, 2012 9:03 am
                                                                                          Re: Stockfish, info currmove and bad UCI practice Ed Schroder Sun Apr 22, 2012 10:03 am
                                                                                          Re: Stockfish, info currmove and bad UCI practice H.G.Muller Sun Apr 22, 2012 7:14 pm
                                          Re: Stockfish, info currmove and bad UCI practice Marco Costalba Sat Apr 21, 2012 11:01 am
            Re: Stockfish, info currmove and bad UCI practice Gary Fri Apr 20, 2012 12:00 pm
                  Re: Stockfish, info currmove and bad UCI practice Marco Costalba Fri Apr 20, 2012 2:07 pm
                        Re: Stockfish, info currmove and bad UCI practice Uri Blass Fri Apr 20, 2012 8:25 pm
                              Re: Stockfish, info currmove and bad UCI practice Uri Blass Fri Apr 20, 2012 9:31 pm
                                    Re: Stockfish, info currmove and bad UCI practice Uri Blass Fri Apr 20, 2012 10:04 pm
                                    Re: Stockfish, info currmove and bad UCI practice Marco Costalba Sat Apr 21, 2012 7:55 am
                                          Re: Stockfish, info currmove and bad UCI practice Uri Blass Sat Apr 21, 2012 12:44 pm
                                                Re: Stockfish, info currmove and bad UCI practice Marco Costalba Sat Apr 21, 2012 2:16 pm
                                                      Re: Stockfish, info currmove and bad UCI practice Uri Blass Sat Apr 21, 2012 3:19 pm
      Re: Stockfish, info currmove and bad UCI practice H.G.Muller Fri Apr 20, 2012 11:29 am
      Re: Stockfish, info currmove and bad UCI practice Don Dailey Fri Apr 20, 2012 4:12 pm
            Re: Stockfish, info currmove and bad UCI practice H.G.Muller Fri Apr 20, 2012 5:09 pm
                  Re: Stockfish, info currmove and bad UCI practice Don Dailey Fri Apr 20, 2012 5:21 pm
            Re: Stockfish, info currmove and bad UCI practice Miguel A. Ballicora Fri Apr 20, 2012 5:35 pm
                  Re: Stockfish, info currmove and bad UCI practice H.G.Muller Fri Apr 20, 2012 5:52 pm
      Re: Stockfish, info currmove and bad UCI practice Joona Kiiski Fri Apr 20, 2012 4:30 pm
            Re: Stockfish, info currmove and bad UCI practice Don Dailey Fri Apr 20, 2012 5:11 pm
                  Re: Stockfish, info currmove and bad UCI practice H.G.Muller Fri Apr 20, 2012 5:15 pm
                        Re: Stockfish, info currmove and bad UCI practice Don Dailey Fri Apr 20, 2012 5:22 pm
                  Re: Stockfish, info currmove and bad UCI practice Sam Hamilton Fri Apr 20, 2012 5:22 pm
                        Re: Stockfish, info currmove and bad UCI practice Don Dailey Fri Apr 20, 2012 5:27 pm
      Re: Stockfish, info currmove and bad UCI practice Julien MARCEL Sat Apr 21, 2012 2:35 pm
            Re: Stockfish, info currmove and bad UCI practice Don Dailey Sat Apr 21, 2012 3:17 pm
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads