Posted by Denis Borris on October 29, 2002 at 02:16:22:
In Reply to: Re: I'll be heading on out now... posted by Joel on October 28, 2002 at 23:43:13:
: calculating the 15th (120 - 1to14). what does this mean?
1+2...+15 = 120; so if I got 14 numbers, quicker to get 15th by subtracting
sum of the 14 numbers from 120, as compared to looping this 15th variable,
since a loop procedure would involve checking the other 14...
: Also programmed these restrictions:
: - 2 consecutives side by side possible only once why?
Example: you have 6 and 7 side by side; the ball on top HAS to be 1;
so if you have any other "consecutive pair", it would also need the 1.
: - no doubles side by side (like 3,6) why?
if you have 3 and 6 side by side, then the ball on top HAS to be 3 !!
(you been drinking?):)
I'll try send you my coding by email, as an attachment; I still haven't
figured out how to copy paste stuff from Ubasic.