XBoard 4.5.3a:
- Sjaak can now load a variant description from a configuration file. It adds the variants it finds to a drop-down menu in the engine options menu, similar to Fairy-Max. The file can either be specified as part of the engine command (as a first argument), or it can be selected from a file selector in the options dialog box. In the latter case, the drop-down menu for the known variants needs to be updated. When I close and reopen the engine options dialog, the original drop-down menu is still there, and a second one appears beneath it.
From the logfile:It seems to first accept and then reject the reset option...?Code: Select all
261 <first : feature variants="normal,berolina,spartan,amazon,knightmate,maharaja,makruk,shatranj,capablanca,gothic,10x8+0_janus,courier,xiangqi,grand,10x8+0_fairy,10x10+0_fairy,8x8+1_fairy,fairy" 261 >first : accepted variants 261 <first : feature option="Variant configuration file -file " 261 >first : accepted option 261 <first : feature option="Variant fairy selects -combo Normal (8x8) /// Amazon (8x8) /// Grand (10x10) /// Indian Grand (10x10) /// Maharaja (8x8) /// Pocket Knight (8x8+1) " 261 >first : accepted option 261 <first : feature done=1 261 >first : accepted done 262 >first : new random 263 >first : level 40 5 0 263 >first : post 263 >first : hard 263 >first : ping 1 264 <first : pong 1 19409 >first : option Variant configuration file=/Users/eglebbk/Program/Sjaak/variants.txt 19410 <first : feature option="Variant fairy selects -reset" 19410 >first : accepted option 19410 >first : rejected option Variant fairy selects -reset 19410 <first : feature option="Variant fairy selects -combo Normal (8x8) /// Amazon (8x8) /// Grand (10x10) /// Indian Grand (10x10) /// Maharaja (8x8) /// Pocket Knight (8x8+1) /// FIDE Chess /// Legan's Chess /// Chancellor Chess /// Ninth Century Indian Chess " 19410 >first : accepted option 19410 <first : feature done=1 19410 >first : accepted done
- I added a variant "pocket knight"; this is like normal chess, but every player starts with an extra knight "in the pocket" that they can drop on the board whenever they want. Even if I select "fairy" with an 8x8 board and holdings of 1, the hodlings displayed by XBoard are empty. Depending on what I try to correct that I can make the black pieces disappear completely, or totally screw up the board. I have not been able to get the correct starting position setup.
I suspect an uninitialised variable somewhere, since when I start a game the black clock jumps to 2187:06:02. This isn't just a display glitch, since the logfile says " >second: time 18897857102" (it's supposed to say "time 1000" for a 40/10" game).