My dad had an HP calculator that had magnetic strips for storing programs. You could play this game against the calculator...play to 21, max choice was 3. At the time, it was considered to be high powered...he would write programs to test engineering situations, and that thing would sit there and flash numbers all night long!
>
>Iif( Mod(NUMBER_TO_REACH, 1000) = 0, Mod( NUMBER_TO_REACH, MAX_CHOICE + 1 ), Mod(Mod(NUMBER_TO_REACH, 1000 ),MAX_CHOICE + 1 ) )
>
>It turns out that if
>Mod( NUMBER_TO_REACH, MAX_CHOICE + 1 ) = 0 then Player 1 will lose
>
>which is the case when you set:
>NUMBER_TO_REACH = 20
>MAX_CHOICE = 9
Steve Gibson