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.
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.