fairy-stockfish / Fairy-Stockfish

chess variant engine supporting Xiangqi, Shogi, Janggi, Makruk, S-Chess, Crazyhouse, Bughouse, and many more
https://fairy-stockfish.github.io/
GNU General Public License v3.0
626 stars 196 forks source link

Options for different rules between white and black #786

Open RainRat opened 7 months ago

RainRat commented 7 months ago

For instance, the option checkCounting in variants.ini, divided into checkCountingBlack and checkCountingWhite.

Look into whether other options make sense to separate, and wouldn't be possible just by giving black/white different pieces/FENs.

Suggestions for options:

Leave the code to parse the original option in place, but have it set both the black and white values(for brevity/compatibility), ie. "checkCounting=true" would set "checkCountingBlack=true" and "checkCountingWhite=true"

Based on suggestion from sm, FSF Discord, #development, 2024/04/24

inversed-ru commented 4 months ago

I really want extinctionPieceTypes and extinctionPieceCount to be color-specific (working on a variant that would benefit from this feature). Having different extinction rules could make for interesting asymmetric play.