Re: [stella] Poker Solitaire

Subject: Re: [stella] Poker Solitaire
From: Chris Wilkson <ecwilkso@xxxxxxx>
Date: Thu, 22 Nov 2001 03:59:13 -0500 (EST)
Hi Brian,

A suggestion for your scoring.  Just have a massive CASE statement.
Here's some pcode:

  case (hand #1)
    when (royal flush)
      statements
    when (royal straight)
      statements
    ...
    ...
    when (3 of a kind)
      statements
    when (pair)
      statements
  end

This way, your check will bail when it gets to 3 of a kind, and will never
even check for a lowly pair.  I've forgotten the rank of particular hands,
but I think you get the idea.

And here's another idea.  There are 2 special, mutually exclusive flags
I think.

  1) Do you have all royal cards?  (A,K,Q,J,10)
  2) Are the cards all the same suit.

So...you check each of 1) and 2) and add some points for one or both.
I don't know how or if this could work, since I don't remember what
beats what, but it's a thought.

-Chris

----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread