On Saturday 21 April 2007, larrysan45 wrote:
> My question is about fc-solve and sequence building. The options
> are alternate_color(default), suit, or rank. Would it be possible to
> edit the program so you could sequence build by any suit but the same?
It would be possible. I think you need to change the following macro in
test_arr.h:
{{{{{{{{{{{{{{{
/*
* This macro determines if child can be placed above parent.
*
* The variable sequences_are_built_by has to be initialized to
* the sequences_are_built_by member of the instance.
*
* */
#define fcs_is_parent_card(child, parent) \
((fcs_card_card_num(child)+1 == fcs_card_card_num(parent)) && \
((sequences_are_built_by == FCS_SEQ_BUILT_BY_RANK) ? \
1 : \
((sequences_are_built_by == FCS_SEQ_BUILT_BY_SUIT) ? \
(fcs_card_suit(child) == fcs_card_suit(parent)) : \
((fcs_card_suit(child) & 0x1) != (fcs_card_suit(parent)&0x1)) \
)) \
)
}}}}}}}}}}}}}}}
> I am not a programmer, but looking at the files of the fc-solve
> program, it seems that building by suit involves first seeing if child
> card can be placed on parent card by rank, then seeing if child card is
> same suit as parent card. Could the program be edited to: see if child
> card can be placed on parent card by rank, then build if child card is
> NOT the same suit as parent card?
> Thanks, I have enjoyed using the fc-
> solve program.
>
You're welcome.
Regards,
Shlomi Fish
> larrysan45
--
---------------------------------------------------------------------
Shlomi Fish shlomif_at_iglu.org.il
Homepage: http://www.shlomifish.org/
If it's not in my E-mail it doesn't happen. And if my E-mail is saying
one thing, and everything else says something else - E-mail will conquer.
-- An Israeli Linuxer
Received on Sat Apr 21 2007 - 11:00:52 IDT