[CSC 204] Re: Bunko Poker

Andrew J. Pounds pounds_aj at mercer.edu
Tue Mar 15 07:00:18 EDT 2011


12345 and 21345 would both count as straights.

13456 and 31456 would count as small straights

11234 and 34566 would count as small straights (because it gives more 
points than 2 pair)

As far as your second question goes, you need to use static methods.  So 
rather than calling it as a string method you will do something like

String roll = Dice.roll();
handMethod(roll)

On 03/15/2011 12:28 AM,  wrote:
> Dr. Pounds,
>
> For the straight and small straight methods, are we assuming that the 
> straights and small straights only apply if they are rolled in the 
> order of a straight. In other words, do both 12345 and 21345 count as 
> straights (since the second one has all of the numbers of a straight, 
> just not in the right order), or would it only be the first one?
>
> Also, you say that every method must take a string argument. Does this 
> mean that we should be able to do something like this:
> Peanut.straight() where Peanut is some string?


-- 
Andrew J. Pounds, Ph.D.  (pounds at theochem.mercer.edu)
Associate Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627



More information about the csc204 mailing list