WinBoard_F ready for beta-release

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

WinBoard_F ready for beta-release

Postby H.G.Muller » 15 Nov 2007, 10:14

It seems that Winboard_F now has all desired features implemented, with no known bugs that need fixing left. I am looking for people prepared to host it on their website, as I was not planning on doing that myself. The implemented features are:

readme.txt wrote:Winboard_F.4.3.12 release notes

This WinBoard (beta-)version is derived from Allessandro Scotti's Winboard_x, and supports the following new options, mainly in the area of adjudication of engine-engine games, improved Crazyhouse support, and allowing variants with non-conventional pieces and or board sizes. (All option are shown here with their default values):

/variant=normal
This (already existing) option has been expanded with several new variants, involving non-conventional pieces and deviating board sizes. The board size is automatically adapted to the selected variant, unless explicitly overruled (see below). The new variants are (with default board size, files x ranks, in parentheses):
Code: Select all
variant name    Game           board     description
knightmate    Knightmate        (8x8)  Variant where the King moves as a
                                          Knight, and vice versa
capablanca    Capablanca Chess (10x8)  Variant featuring Archbishop and
                                          Chancellor as new pieces
gothic        Gothic Chess     (10x8)  Same as Capablanca, with a more
                                          interesting opening position
courier       Courier Chess    (12x8)  a Medieval form that combines elements
                                          of Shatranj and modern Chess
shogi         Shogi             (9x9)  Japanese Chess
xiangqi       Xiangqi          (9x10)  Chinese Chess
fairy         Fairy Chess       (8x8)  Variant were you can use all pieces of
                                          other variants together


The variant can be set from the newly added "File -> New Variant..." sub-menu. Extra board files are indicated by the letters i, j, k, l, ... For boards with more than 9 ranks, the counting starts at zero! More than 10 ranks is not tested and unlikely to work in the area of PGN saving / reading. Non-FIDE pieces will be referred to in FENs and PGN by letters that depend on the variant, and might collide with piece designators in other variants. E.g. in Xiangqi 'C' is a Cannon, in Capablanca Chess it is a Chancellor. Pieces that do not belong in a variant cannot be addressed in FEN and PGN either, for as long as that variant is selected, unless the letter assignment is overruled with the aid of the /pieceToCharTable option. The variant is not saved in the winboard.ini file; on start-up we always get variant "normal" unless we use the command-line option, or have added the option to the winboard.ini file manually (in which case it will disappear when this file is overwritten by WinBoard saving its options).
WinBoard_F knows the movement of all pieces occurring in Capablanca Chess (of which FIDE Chess is a subset), Shatranj, Courier, Xiangqi and 9x9 Shogi, so that these games can be played with legality testing enabled.

/pieceToCharTable="PNBRQFWEMOUHACGSKpnbrqfwemouhacgsk"
Each piece that WinBoard knows (in its legality test) has a letter associated with it, by which it will be referred to in FEN or PGN. The default assignment can be overruled with this option. The value has to be a string of even length, with at least 12 characters. The first half of the string designates the white pieces, the second half the black. The last letter for each color will be assigned to the King. (This is the piece that moves as an orthodox King; note that Nightmate and Xiangqi have a different royal piece.) All letters before it will be assigned to the other pieces in the order:

Code: Select all
P Pawn                 (move often depends on variant)
N Knight               (move subtly different in Xiangqi (where it is written
                          as H) or Shogi)
B Bishop
R Rook
Q Queen                (Lance L in Shogi)
F Ferz/General         (The Shatranj 'Queen' and Xiangqi 'Adviser', used
                          for Silver General S in Shogi.)
W Wazir/GrandVizer     (Gold General G in Shogi, in Xiangqi it is royal and
                          denoted by K)
E Alfil/Elephant       (Moves subtly different in Xiangqi vs Shatranj/Courier)
M Commoner/Man
O Cannon/Pao
U Unicorn              (representation of Royal Knight in Knightmate, used as
                          promoted Pawn in Shogi)
H Nightrider           (Promoted Knight in Shogi and CrazyHouse)
A Archbishop/Cardinal  (Promoted Bishop in Shogi and CrazyHouse)
C Chancellor/Marshall  (Promoted Rook   in Shogi and CrazyHouse)
G Grasshopper          (Promoted Queen in Crazyhouse, promoted Lance in Shogi)
S                      (Promoted Silver in Shogi)
K King
 


Pieces that are not mentioned (because the argument has less than 34 characters) will remain disabled. Mentioned pieces can be disabled by assigning them a '.' (period). They are then not recognized in FEN or PGN input. Non-FIDE pieces that are not assigned a letter will also not appear on the promotion menu. It is not advisable to disable a piece that is present in the opening position of the selected variant, though.
Promoted pieces that need to be distinguished from original pieces of the same type (because of demotion on capture and transfer to the holdings) will be indicated by the letter for the unpromoted piece with a '+' in front of it (Shogi), or by the letter of the promoted piece with a '~' after it (Crazyhouse, Bughouse, in general everything with holdings that is not Shogi). To achieve this, they should be assigned the characters '+' or '~', respectively.
All the new pieces have a native bitmap representation in the board sizes 'bulky' and 'middling'. For all window sizes that do not support such fairy bitmaps, promoted NBRQ are represented as a 2-sizes-smaller normal piece symbol, so that Crazyhouse can be played at any size. People disliking the fairy representations might even prefer this.
There is an enhanced 'Edit Position' menu popup (right-clicking on the squares after selecting this mode in the main menu), featuring some common non-FIDE pieces, and 'promote' and 'demote' options to make those not directly in the menu. The promotion popup shows ArchBishop and Chancellor in Capablanca and Gothic, (or in fact in any game where this piece is not disabled or a promoted version of a normal piece), and leaves only the options YES / NO in Shogi. In Xiangqi there are no promotions.

/fontPieceToCharTable="PNBRQFWEMOUHACGSKpnbrqfwemouhacgsk"
This option is similar to /pieceToCharTable, but sets the font character that is used to display the piece on the screen (when font-based rendering is in use), rather than in the FEN or PGN. The default setting should work with George Tsavdaris' WinboardF font, which uses the 'intuitive' mapping of font characters to symbols. With font-based rendering the fairy pieces can be used at any board size.
Note that UHACGS are also used to represent the promoted versions of PNBRQF, in games like Crazyhouse and Shogi, where the promotion has to be undone on capture. In such games you are likely to prefer a different representation of those pieces then when they represent true fairy pieces.

/boardWidth=-1 /boardHeight=-1
Set a number of files and ranks of the playing board to a value that will override the defaults for the variant that is selected. A value of -1 means the variant default board size will be used for the corresponding parameter (and is itself the default value of these options). These parameters can be set in the "Files -> New Variant..." sub-menu, where they are reset to the default -1 if you OK the chosen variant without typing something to overrule it. These parameters are saved in the winboard.ini file. (But unless you saved while a variant with board-size override was selected, they will always be saved as -1.)
A variant with a non-standard board size will be communicated to the engine(s) with the board size prefixed to the variant name, e.g. "variant 12x8_capablanca". In protocol 2 the engine must first enable this feature by sending "boardsizeFxR" amongst the accepted variants, where F is the maximum number of files, and R the maximum number of ranks, as decimal numbers.

/holdingsSize=-1
Set the size of the holdings for dropable pieces to a value that will override the default for the variant that is selected. A value of -1 means the variant default holdings size will be used for that parameter (and is itself the default value of this options). This parameter can be set in the Files -> New Variant... sub-menu, where it is reset to the default -1 if you OK the chosen variant without typing something to overrule it. This parameters is saved in the winboard.ini file.
To disable holdings, set their size to 0. They will then not be displayed. For non-zero holding size N, the holdings are displayed left and right of the board, and piece drops can be effected by dragging pieces from the holdings to the drop square. In bughouse, the holdings will be filled by the ICS. In all other variants, captured pieces will go into the holdings (after reversing their color). Only the first N pieces of the /pieceToCharTable argument will go into the holdings. All other pieces will be converted to Pawns. (In Shogi, however they will be demoted in the regular way before determining if they fit.) Pieces that are disabled (per default and per /pieceToCharTable option) might not be counted when determining what are the first N pieces.
Non-standard holdingsize will be communicated to the engine by prefixing it (together with the board size, even if this is standard) to the variant name, e.g. "variant 7x7+5_shogi". In protocol 2 the engine should enable this feature by sending "holdingsH" amongst the variant names, where H is the maximum acceptable holdings size as a decimal number.

/alphaRank=FALSE
When this parameter is true, a-h are converted to 1-9, and vice versa, in all move output and input (to PGN files or SAN move display as well as in communication with the engine). This might be useful for Shogi, where conventionally one uses letters to designate ranks, and digits to designate files. Engines that want to use this option must make sure pieces are never represented by lower case! This option can be set from the Files -> New Variant... menu, where it defaults to FALSE unless you explicitly set it. It is not saved in the winboard.ini file.
This kludge does not seem to work for reading PGN files. Saving works fine. For now, using it is not recommended. In the future it might be redefined as only affecting engine-engine communication, .
Note that the PGN format in Shogi also leaves out the trailing '+' as check indicator: In Shogi such a trailing '+' means promotion, while a trailing '=' means defer promotion. Prefix '+' signs are used on moves with promoted pieces, disambiguation is done western SAN style.

/allWhite=FALSE
Causes the outline of the 'white' pieces to be superimposed onto the 'black' piece symbols as well (as a black outline) when native bitmaps are used (as opposed to font-based rendering). This is useful if we choose a very light color to represent the 'black' pieces. It might be particularly useful in Shogi, where the conventional representation of the 'black' pieces is as upside-down white pieces, so that both colors would be white. This option is saved in the winboard.ini file, and can be set in the "Options -> Board..." sub-menu.

/flipBlack=FALSE
Setting this option will cause upside-down display of the native piece bitmaps used to represent the pieces of the side that plays black, as would be needed for a traditional representation of Shogi pieces. It can be set from the "Options -> Board..." sub-menu, and it is saved in the winboard.ini file. For now, traditional Shogi bitmaps are only included for size "moderate". For other sizes you must depend on font-based rendering.

/detectMate=TRUE
/testClaims=TRUE
/materialDraws=TRUE
/trivialDraws=FALSE
/ruleMoves=51
/repeatsToDraw=6

These are all options that only affect engine-engine play, and can be set from the "Options -> Engine..." sub-menu. They are all related to adjudication of games by the GUI. Legality checking must be switched on for them to work.
If /detectMate is TRUE, the GUI recognizes checkmate and stalemate (but not in games with holdings!), and ends the game accordingly before the engines can claim. This is convenient for play with engines that fail to claim, and just exit.
With /testClaim set, all result and illegal-move claims by engines that claim more than their own loss are scrutinized for validity, and false claims result in forfeit of the game. Useful with buggy engines.
The option /materialDraws=TRUE causes games with insufficient mating material to be adjudicated immediately as draws, in case the engines would not claim these draws. This applies to KK, KNK and KBK.
The option /trivialDraws adjudicates KNNK, KBKB, KNKN, KBKN, KRKR and KQKQ to draws after 3 moves (to allow for a quick tactical win). Note that in KQKQ this might not be sound, but that problem would disappear once bitbase probing is implemented.
The /ruleMoves determine after how many reversible moves the game is adjudicated as a draw. Setting this to 0 turns this option off. Draw claims by the engine are still accepted (with /testClaim=TRUE) after 50 reversible moves, even if /ruleMoves species a larger number. Note that it is perfectly legal according to FIDE rules to play on after 50 reversible moves, but in tournaments having two engines that want to play on forever is a nuisance in endings like KBNKR, where one of the engines thinks it is ahead and can avoids repeats virtually forever.
The option /repeatsToDraw makes the GUI adjudicate a game as draw after the same position has occurred the specified number of times. If it is set to a value > 3, engines can still claim the draw after 3-fold repeat. AAll these options are saved in the winboard.ini file.

/matchPause=10000
Determines the number of milliseconds that is paused between two games of a match. In the old WinBoard this was always 10 sec, which was inconveniently long in fast games. If you make the pause too short, tardy engines might get into trouble, though. Saved in the Winboard.ini.

Clocks
There is an "Options -> swap clocks" command, that swaps the position of white and black clocks (convenient in over-the-board matches, where the display is standing next to the board, and you want your own time to be displayed on your side of the screen). The clocks can be adjusted in "edit game" mode: right-clicking them adds one minute, left-clicking subtracts one minute. (Also for OTB matches, to keep them synchronized with the official match clock.) The flag-fell condition is now indicated as '(!)' behind the displayed time, to eliminate the necessity for overwriting the message in the title bar (which might contain indispensible information in match mode).

Other improvements and changes
Castling rights and e.p. rights are now fully maintained, and considered in legality testing. They are imported from and written to FEN, as is the 50-move counter. (When reading an incomplete FEN they are still guessed, though.)
The time (in sec, or min:sec) is now always stored together with the PV information to the PGN, if storing the latter was requested (through ticking "extended PGN info" in "Options -> General..."). The saved time is the WinBoard clock time (as opposed to the time reported by the engine).
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: WinBoard_F ready for beta-release

Postby H.G.Muller » 15 Nov 2007, 11:29

Note that I did not do anything to the xboard.c file, so that the new options are not available for xboard, and in fact the new sources might not compile together with xboard at all. I know someone who has made an xboard.c that would compile together with an earlier version of the files I modified, so it might not be hopeless. The thus compiled xboard was able to play engine-engine Xiangqi games between two copies of HoiXiangqi.

Since then I did make more modifications to the frontend, to display the crazyhouse holdings, though.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: WinBoard_F ready for beta-release

Postby Alex Brunetti » 15 Nov 2007, 16:40

H.G.Muller wrote:It seems that Winboard_F now has all desired features implemented, with no known bugs that need fixing left. I am looking for people prepared to host it on their website, as I was not planning on doing that myself.


Dear HG,

I can host WBF in GSEI site with no traffic limits.

Kindest regards, Alex
Alex Brunetti
 
Posts: 7
Joined: 13 Jun 2006, 01:14
Location: Como, Italy

Re: WinBoard_F ready for beta-release

Postby Alex Brunetti » 16 Nov 2007, 00:58

The program is now available here. Thanx to HG for this new WB version.

Alex
Last edited by Alex Brunetti on 16 Nov 2007, 10:10, edited 1 time in total.
Alex Brunetti
 
Posts: 7
Joined: 13 Jun 2006, 01:14
Location: Como, Italy

Re: Thanks HG!

Postby Ross Boyd » 16 Nov 2007, 09:51

Hi,

Just a quiet word of thanks for your efforts with WB.
I've just downloaded it and will be making special use of your /matchPAUSE addition (as well as the fantastic trivial draw additions). What a GREAT time saver!

Did I say a quiet word of thanks???

THANKYOU!

Cheers, :)

Ross
User avatar
Ross Boyd
 
Posts: 83
Joined: 26 Sep 2004, 23:07
Location: Wollongong, Australia

Re: Thanks HG!

Postby H.G.Muller » 16 Nov 2007, 10:37

No sweat! :D

Remember, though, that it is a beta version, so for the time being, scrutinize every adjudication call for validity!

I hope that in the future someone that has experience with bitbase probing will implement (or help me to implement) yet another adjudication option, that would adjudicate the game according to the bitbase as the number of men drops to a user-selectable level.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Thanks HG!

Postby Roger Brown » 16 Nov 2007, 14:38

H.G.Muller wrote:No sweat! :D

Remember, though, that it is a beta version, so for the time being, scrutinize every adjudication call for validity!

I hope that in the future someone that has experience with bitbase probing will implement (or help me to implement) yet another adjudication option, that would adjudicate the game according to the bitbase as the number of men drops to a user-selectable level.




Hello H.G.Muller,

Permit me to also add my voice to those thanking you. As you know, my primary interest lies in the classical game - not the variants - but having my all time favourite gui with that ability is intriguing.

Sayyyy, I have a question, are other piece sets selectable for classic chess on the standard sized board? That would be really cool.

The additional commands you have made selectable are perfect for technophobes such as myself.

THANKS!!

(Mine is better, it is in colour after all... :twisted: )

Later.
Roger Brown
 
Posts: 346
Joined: 24 Sep 2004, 12:31

Re: Thanks HG!

Postby H.G.Muller » 16 Nov 2007, 14:50

Roger Brown wrote:Sayyyy, I have a question, are other piece sets selectable for classic chess on the standard sized board? That would be really cool.

Winboard_x, from which I started, already has the option /renderPiecesWithFont="<font name>", which can be used to tailor the piece representations at will. For those not interested in fairy pieces the choice of fonts is already very large, see e.g.:

http://www.enpassant.dk/chess/fonteng.htm
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Thanks HG!

Postby Pradu » 16 Nov 2007, 19:31

H.G.Muller wrote:No sweat! :D

Remember, though, that it is a beta version, so for the time being, scrutinize every adjudication call for validity!

I hope that in the future someone that has experience with bitbase probing will implement (or help me to implement) yet another adjudication option, that would adjudicate the game according to the bitbase as the number of men drops to a user-selectable level.
I don't think this is a good idea. Even if it's drawn, engines can make mistakes. Say you had a drawn KPK; the engine could still make a mistake, so it isn't a good idea to adjudicated. I think only positions where it is impossible to mate the opponent regardless of the sequence of moves should be adjudicated (that means positions like KNNK shouldn't be adjudicated).
User avatar
Pradu
 
Posts: 343
Joined: 12 Jan 2005, 19:17
Location: Chandler, Arizona, USA

Re: Thanks HG!

Postby Alex Brunetti » 16 Nov 2007, 21:15

Pradu wrote:I don't think this is a good idea. Even if it's drawn, engines can make mistakes.


Well, it depends on the match/tournament rules and purposes. It's definitely better to have the choice to adjudicate than to have not :)

Alex
Alex Brunetti
 
Posts: 7
Joined: 13 Jun 2006, 01:14
Location: Como, Italy

Re: Thanks HG!

Postby H.G.Muller » 16 Nov 2007, 22:01

Pradu wrote:Even if it's drawn, engines can make mistakes. Say you had a drawn KPK; the engine could still make a mistake, so it isn't a good idea to adjudicated. I think only positions where it is impossible to mate the opponent regardless of the sequence of moves should be adjudicated (that means positions like KNNK shouldn't be adjudicated).

This is why KNNK is in a group (with KBKB, KBKN, KNKN, KRKR and KQKQ) that can be enabled for adjudication independently from KK, KBK and KNK.

Engines above a certain level will not be able to make mistakes here, and playing out these games waiting for the 50-move rule would then just be a complete waste of time. Similarly, if you know you are playing two engines that both use 5-men EGTBs, playing on 50-moves in a drawn position is a waste of time. For testing my EGTB implementation I would switch the adjudication off, but when I am testing my midgame evaluation, knowing that my bitbases already work flawlessly, I don't want to waste time on such games...
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL


Return to Winboard and related Topics

Who is online

Users browsing this forum: No registered users and 33 guests