--- In fc-solve-discuss_at_yahoogroups.com, Shlomi Fish <shlomif_at_...>
wrote:
>
> Hi Danny,
>
> trying to understand your logic I ran into what appears to be a bug:
>
<snip>
> >
> > Automove logic for Keith's first scenario. Braces contain actual
values
> > assigned.
> >
> >
> > /* Foundation: 5C 4D 3S 4H */
> > /* Card in Question: 6C */
> >
> > int Test_1, Test_2, Test_3, Test_4, val_1[4], val_2[4];
> >
> > val_1[C] = {6} = RANK( 5C ) + 1;
> > val_1[D] = {5} = RANK( 4D ) + 1;
> > val_1[S] = {4} = RANK( 3S ) + 1;
> > val_1[H] = {5} = RANK( 4H ) + 1;
> >
> > val_2[C] = val_2[S] = {6} = MIN( val_1[D] , val_1[H] ) + 1;
> > val_2[D] = val_2[H] = {5} = MIN( val_1[C] , val_1[S] ) + 1;
> >
> > Test_1 = {T} = ( RANK( 6C ) == val_1[C] );
> > Test_2 = {F} = ( RANK( 6C ) < val_2[C] );
> > Test_3 = {T} = ( ( RANK( 6C ) == val_2[C] ) && ( RANK( 6C ) <= (
> > val_1[S] + 2 ) ) );
> > Test_4 = {F} = ( Test_3 && ( RANK( 6C ) == 2 ) );
>
> Are you sure that it should be RANK( 6C ) == 2 (with a constant of
2.)? 6C can
> never have such a rank so the test will almost always fail. Of can you
only
> play cards with a rank of 2 this way?
>
I placed MK's actual cards into the logic used by my solver. The "Card
in Question" was the 6C. The reason for the test ( RANK(card) == 2 ) is
to allow the Horne automove logic to perform a WKR automove for 2's.
There's actually two groups of logic in a Horne automove!
<snip>
Regards, Danny
Received on Mon Dec 10 2012 - 11:38:41 IST