Re: TIB: Re:


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

Re: TIB: Re:




In a message dated 12/18/98 6:43:20 PM Central Standard Time,
olp1726@softhome.net writes:

> 
>  
>  ahhh i had an idea....about what i asked you.
>  
>  what if i had them in a matrix...right. then check the sum of the column 
> since there are only one or two possible sums for five numbers in orderall 
> being of value (1-6)
>  
>  this would work no?
>  
>  
>  that handles a large straight now what about 4 out of five numbers
inorder...
> that will be the hard one.
Testing the sum of the matrix column won't help.  1+2+3+4+5 is 15 and its in
order, but 2+1+3+5+4 is 15 and it's not in order.  You'll have to write an
algorithm to step through the matrix and check if each number is less than the
one before it.
PJC II