Re: programing help


[Prev][Next][Index][Thread]

Re: programing help



Nadler wrote:
>
> I am making yatzee in ti-basic for the ti-83 and I am stumped.  I
> don't
> know a way for the calc to know if a 3 of a kind is really a 3 of a
> kind.  The only way I can think of is to type in all the possibilities
> that 3 digits would be the same, but this would take a long time and a
> lot of space.  Does anyone know a better way to do this?

I wrote a pretty good poker program for the 92 a little while back, and
the way I detected a 3 of a kind was to just sort the list after the
dealing and everything is done.  When I went through and found a 2 of a
kind, I'd check if the next was the same, set the flag that it's a 3 of
a kind, then increment my counter to skip over that.  Understand?

--
            ''~``
           ( o o )
  ____.oooO__(_)__Oooo.__________
 /  Tony Lieuallen               \
[ arantius@erols.com              ]
[     http://tiarc.home.ml.org    }
[    .oooO http://gifs.home.ml.org]
[    (   )   Oooo.                ]
 \____\ (____(   )_______________/
       \_)    ) /
             (_/


References: