| View previous topic :: View next topic |
| Author |
Message |
H.G.Muller

Joined: 10 Mar 2006 Posts: 12765 Location: Amsterdam
|
Post subject: Re: What should I support, UCI or Winboard? Posted: Tue Apr 24, 2012 8:19 am |
|
|
| Michel wrote: |
| Quote: |
| but imagine the same protocol needing to have a way to say, "take back 2 moves to get to the same side's turn" |
This is the "remove" command in the winboard protocol.
I don't like the undo/remove commands either. I think their effect on the protocol state is complicated to specify. |
The 'undo' and 'remove' commands are a legacy of GNU Chess, and understandable from the fact that for GNU Chess the user interface was the raw protocol. So verbosity was an extremely undesirable trade, as the user would be expected to type each and every command by hand.
So having to type 'go' after every move to get a reply was (justly) deemed highly undesirable. (Although I think typing an empty line, as I do in native 'micro-Max protocol', would be bearable.) Hence the fact that WB protocol always uses 'auto-go' (= non-force) mode. And that again makes simply giving two 'undo' commands in a row to retract the last move impossible, because after the first 'undo' it wuld again be the engine's turn, and it would spontaneously redo the move. So you would have to type something like "force; undo; undo; usermove XXXX; go", and I can imagine why the designers thought that "remove" was more user friendly...
For use as a communication protocol between automated entities such arguments of course no longer play a role. I think it would indeed be highly preferable if GUIs would implement a user takeback by simply resending the game, starting with 'new' (or 'setboard'). Problem is that for many existing engines 'new' could cause hash-table clearing, or even require a complete relaunching of the engine process (for reuse=0 engines). Which I think would still be acceptable after takeback in a human-engine game, but would be very undesirable for stepping through a game / variation tree during analysis.
How about adding an "undo=0" feature to the protocol? Which engines could use to indicate they don't support undo / remove (which we would then label 'deprecated'), and let the GUI simply resend the game (new; force; usermove MOVE1; ....; usermove MOVEN; playother;) in case the user requests an 'undo'? It would then be the responsibility of the engine to make sure it does not erase its hash table during such reloading.
As I already wrote above, this is exactly the way how I implement 'undo' now in my engines. Just keep a record of all moves played or entered, and stuff that list (appropriately clipped) back into the input buffer when the engine receives 'undo'/'remove'. We might as well have the GUI do it for us... |
|
| Back to top |
|
 |
|
| Subject |
Author |
Date/Time |
What should I support, UCI or Winboard? |
Asim Pereira |
Sun Apr 22, 2012 5:28 am |
Re: What should I support, UCI or Winboard? |
Ted Wong |
Sun Apr 22, 2012 6:26 am |
Re: What should I support, UCI or Winboard? |
Asim Pereira |
Sun Apr 22, 2012 7:39 am |
Re: What should I support, UCI or Winboard? |
Ted Wong |
Sun Apr 22, 2012 9:14 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Sun Apr 22, 2012 9:32 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Sun Apr 22, 2012 8:27 am |
Re: What should I support, UCI or Winboard? |
Aart Bik |
Tue Apr 24, 2012 9:54 pm |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Wed Apr 25, 2012 6:17 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Wed Apr 25, 2012 8:55 am |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Wed Apr 25, 2012 5:57 pm |
Re: What should I support, UCI or Winboard? |
Matthias Gemuh |
Sun Apr 22, 2012 3:04 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Sun Apr 22, 2012 6:48 pm |
Re: What should I support, UCI or Winboard? |
Matthias Gemuh |
Sun Apr 22, 2012 8:14 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Sun Apr 22, 2012 9:10 pm |
Re: What should I support, UCI or Winboard? |
Miguel A. Ballicora |
Sun Apr 22, 2012 9:19 pm |
Re: What should I support, UCI or Winboard? |
Evert Glebbeek |
Mon Apr 23, 2012 5:25 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 6:54 am |
Re: What should I support, UCI or Winboard? |
Evert Glebbeek |
Mon Apr 23, 2012 8:50 am |
Re: What should I support, UCI or Winboard? |
Ronald de Man |
Sun Apr 22, 2012 11:23 pm |
Re: What should I support, UCI or Winboard? |
Carlos Pesce |
Sun Apr 22, 2012 11:34 pm |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Mon Apr 23, 2012 12:11 am |
Re: What should I support, UCI or Winboard? |
Carlos Pesce |
Tue Apr 24, 2012 12:12 am |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Tue Apr 24, 2012 1:18 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 1:25 pm |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Tue Apr 24, 2012 1:34 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 1:37 pm |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Tue Apr 24, 2012 1:45 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 1:53 pm |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Tue Apr 24, 2012 2:27 pm |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Sun Apr 22, 2012 10:42 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 8:07 am |
Re: What should I support, UCI or Winboard? |
Ted Wong |
Mon Apr 23, 2012 10:43 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 11:16 am |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Tue Apr 24, 2012 1:00 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 1:04 pm |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Tue Apr 24, 2012 3:09 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 4:50 pm |
Re: What should I support, UCI or Winboard? |
Asim Pereira |
Tue Apr 24, 2012 5:29 pm |
Re: What should I support, UCI or Winboard? |
Michel Van den Bergh |
Tue Apr 24, 2012 6:07 pm |
Re: What should I support, UCI or Winboard? |
Miguel A. Ballicora |
Tue Apr 24, 2012 6:16 pm |
Re: What should I support, UCI or Winboard? |
Evert Glebbeek |
Mon Apr 23, 2012 11:25 am |
Re: What should I support, UCI or Winboard? |
Tony Mokonen |
Mon Apr 23, 2012 10:00 pm |
Re: What should I support, UCI or Winboard? |
Don Dailey |
Mon Apr 23, 2012 1:44 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 2:11 pm |
Re: What should I support, UCI or Winboard? |
Don Dailey |
Mon Apr 23, 2012 2:51 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 6:01 pm |
Re: What should I support, UCI or Winboard? |
Ronald de Man |
Mon Apr 23, 2012 7:33 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 7:49 pm |
Re: What should I support, UCI or Winboard? |
Ronald de Man |
Mon Apr 23, 2012 9:03 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 9:31 pm |
Re: What should I support, UCI or Winboard? |
Don Dailey |
Mon Apr 23, 2012 7:34 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 9:15 pm |
Re: What should I support, UCI or Winboard? |
Michel Van den Bergh |
Tue Apr 24, 2012 6:23 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 8:19 am |
Re: What should I support, UCI or Winboard? |
Evert Glebbeek |
Tue Apr 24, 2012 8:39 am |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Mon Apr 23, 2012 9:49 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 10:08 pm |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Mon Apr 23, 2012 10:42 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 5:36 am |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Tue Apr 24, 2012 6:50 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 7:17 am |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Tue Apr 24, 2012 7:42 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 7:49 am |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Tue Apr 24, 2012 8:16 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 8:35 am |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Tue Apr 24, 2012 8:50 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 9:08 am |
Re: What should I support, UCI or Winboard? |
Ed Schroder |
Tue Apr 24, 2012 10:16 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 11:57 am |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Tue Apr 24, 2012 7:45 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 8:06 pm |
Re: What should I support, UCI or Winboard? |
Jon Dart |
Tue Apr 24, 2012 1:45 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 5:44 am |
Re: What should I support, UCI or Winboard? |
Jon Dart |
Tue Apr 24, 2012 11:15 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 12:32 pm |
Winboard ftw |
Daniel Shawul |
Wed Apr 25, 2012 2:10 pm |
Re: Winboard ftw |
H.G.Muller |
Wed Apr 25, 2012 2:45 pm |
Re: Winboard ftw |
Daniel Shawul |
Wed Apr 25, 2012 3:21 pm |
|
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
|
|