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
594 stars 186 forks source link

Options for different rules between white and black #786

Open RainRat opened 3 months ago

RainRat commented 3 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 1 month 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.