Page 1 of 1

Suggestion for a new command

PostPosted: 27 Sep 2009, 19:44
by Miguel A. Ballicora
Xboard/winboard has the 'bk' command for opening book information about the current position. I would like to have a similar 'tb' command so I can output this

Image

Code: Select all
White wins in    9 moves
----------------------------------
 Kb7      wins in   9 ( 17 plies)
 Kb8      wins in   9 ( 17 plies)
 Rb7      wins in   9 ( 17 plies)
 Ra6      wins in  10 ( 19 plies)
 Rc6      wins in  10 ( 19 plies)
 Rd6      wins in  10 ( 19 plies)
 Ka7      wins in  10 ( 19 plies)
 Rb1      wins in  11 ( 21 plies)
 Rb2      wins in  11 ( 21 plies)
 Rb3      wins in  11 ( 21 plies)
 Rb4      wins in  11 ( 21 plies)
 Rb5      wins in  11 ( 21 plies)
 Re6      wins in  11 ( 21 plies)
 Rf6      wins in  11 ( 21 plies)
 Rh6+     wins in  11 ( 21 plies)
 Rb8+     wins in  11 ( 21 plies)
 Rg6      wins in  11 ( 21 plies)


I have the command tb in console, but I would like to do it with the GUI too.
I think it should be very easy to implement. It should be identical to bk and philosophically symmetrical. Like bk, it should be in analyze mode too.

Also, there should be a way for the engine to have a "telluser" that can output more that one line so we can implement this type of outputs with our own "button"'s added in feature option.

Miguel