hgm wrote:I haven't tested it yet, but there might be yet another issue: Sjaak claims rep-draws, but after how many repeats? For Shogi it needs 4-fold repeat rather than 3. And it would be logical to extend that to variants that have Shogi as parent variant.
Good point: the number of repeats needed for Sjaak to claim a rep-draw is a variable, which defaults to 2 (so the position is repeated twice, that is, occurs 3 times) but it is set to 3 for Shogi (so the position must occur 4 times).
However, this is apparently not settable from the config file, which is an oversight I will fix before release. I'll probably make it so you specify "4" for the Shogi rule and "3" for the standard rule (rather than 3 and 2, which would probably just be confusing).
If this is too complex, it would be nice if there was a general option 'Claim draws', so that draw claiming could be switched off alltogether.
This I can do either way (but it's more complicated than adding rep-draw repeat counts to the config file). I should perhaps also add something for a resign threshold (although I'm not a fan of the "below an arbitrary number for at least N consecutive plies" variety).
Recognizing repeats is something that a GUI can do (in a user-configurable way) even with legality testing off. In Fairy-Max I recently added an option to suppress its claiming of 50-moves draws (actually make it possible to claim after any other number of moves), because I adopted a 75-move rule for Team-Mate Chess (and also Makruk has a 64-move rule), and configuring those in XBoard did not have the desired effect if the engine would still claim after 50...
I should be able to configure that one as well. That should probably by a variant-specific option rather than a global option though.
Does XBoard implement 64-move/counting rules for Makruk?