[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]
Check out Janggi (Korean Chess), our featured variant for December, 2024.
Check out Janggi (Korean Chess), our featured variant for December, 2024.
I now adapted all chess variants (I think) that accessed the Zobrist API directly to using the new API. This were Metamachy and Leychessalpha (for setting up a user-selected initial position), Shafran Chess (for performing a non-standard castling) and Modern Chess (for performing a Bishop swap). I could not find any other files that contained the word 'zobrist'.
I think this is necessary for making the Zobrist patch acceptable for inclusion in the master branch; in the pull request we will prepare these commits must all be squashed together with the actual change in the API. Which must be one of the first things committed, as variants that I committed later rely on the new API.
I tested all the games, and the actions for which the Zobrist API is accessed all worked without problems. I have not tested whether this actually produced the correct key. For setting up the position this is not even theoretically possible, as the variants that do it have no opening book that requires a correct key to probe it, and the start key is completely arbitrary anyway. So the whole key-update rigmarole is in fact completely futile there. And even if they had an opening book it would have been sufficient to just use a different arbitrary key for each of the start positions the user can select.