Check out Symmetric Chess, our featured variant for March, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

The birth of two variants: Apothecary chess 1 & Apothecary chess 2[Subject Thread] [Add Response]
Greg Strong wrote on Sat, Jan 4, 2020 12:04 AM UTC:

if match old r b n m a c v s w:
setelem reserve old inc elem old reserve;
endif;

reserve is an associative array that is keeping track of the number of pieces of each type that is in reserve.  When a piece of one of these types is captured, the number associated with that type in the associative array is incremented.  This is for implementing the promotion rules where you are allowed to promote by replacement to pieces of yours that have been captured.