I guess I should have mentioned that by changing the vector labeled max_pearl_set in the main function you can simulate any Nim-style problem. The default is, of course, for pearls or swine 2.

John
_________________________
1998 BMW ///M3 30 GB Mk2a, Tuner, and 10 GB backup