Re: Stuck in a loop

2008-03-31 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |I wrote a simple algorithm and it keeps getting stuck in a loop. I | guess I'm just to tired to figure it out: The easiest way to figure out somethinglike this is to print your variables from inside the loop to see thing

Re: Stuck in a loop

2008-03-31 Thread Dan Bishop
On Mar 31, 8:22 pm, [EMAIL PROTECTED] wrote: > I wrote a simple algorithm and it keeps getting stuck in a loop. I > guess I'm just to tired to figure it out: > > compcount=[5,4,2,2] > suitrank=[0,0,0,0] > > trump=2 > l,lt=0,0 > while l<4: > while lt<

Stuck in a loop

2008-03-31 Thread hexusnexus
I wrote a simple algorithm and it keeps getting stuck in a loop. I guess I'm just to tired to figure it out: compcount=[5,4,2,2] suitrank=[0,0,0,0] trump=2 l,lt=0,0 while l<4: while lt<4: if l==trump: l+=1 if l>3: break