I was surprised that you didn't include the equations to computer the maximum number of cards that can be moved. The following is equivalent to what I use in my C source.
Ecolm = number_of_empty_columns;
Efree = number_of_empty_freecells;
mcnt = ( ( Efree + 1 ) << Ecolm );
if ( move_to_empty_column ) mcnt = ( mcnt >> 1 );
The variable "mcnt" contains the maximal multi-card move count -- depending on the destination being an occupied/empty column.
--- In fc-solve-discuss_at_yahoogroups.com, Shlomi Fish <shlomif_at_...> wrote:
>
> I noticed that some people reported that they think some multi card moves performed
> by Freecell Solver are illegal (or asked for help with expanding them.).
Received on Fri Aug 31 2012 - 18:08:39 IDT