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
624 stars 195 forks source link

Priority drops #805

Open inversed-ru opened 4 months ago

inversed-ru commented 4 months ago

Implementation of priority drops, a feature I needed for my chess variant. Pieces from priorityDropTypes must be dropped before dropping any other pieces. In my variant, I use this feature to control the early game setup, even though I don't technically impose a separate setup phase: stronger pieces can be dropped only after all the weaker ones have been dropped.