Talk:Poker hand analyser

Revision as of 07:28, 13 December 2013 by rosettacode>Gerard Schildberger (→‎extra credit suggestion: added comments about wild cards and "bugs", playing poker with more than five cards. -- ~~~~)

Suggestions

Hi, just some suggestions on the task. (Nice one by the way):

  1. You might ask people to show their output on this page.
  2. You might want to flesh out the examples so that there is an example of each type of hand

--Paddy3118 (talk) 16:28, 10 December 2013 (UTC)

I made those changes so Perl 6 will need those (slight), updates. --Paddy3118 (talk) 17:23, 10 December 2013 (UTC)

Another example to add would be a bicycle (to compliment the royal flush) to show that an ace can be used as two different values.

A bicycle (or bike) is a straight consisting of:   ace, deuce, trey, 4, and a 5   (the lowest straight possible). -- Gerard Schildberger (talk) 05:40, 12 December 2013 (UTC)



I would like the allowing of expanding invalid responses with (possibly, say)

invalid --- the reason for invalid flagging here.

-- Gerard Schildberger (talk) 05:30, 12 December 2013 (UTC)

extra credit suggestion

It would be real interesting to program (for extra credit) adding two jokers to the deck, adding a few complications:

  •   duplicates would be allowed   (for jokers only)
  •   five-of-a-kind would be the highest hand

-- Gerard Schildberger (talk) 07:58, 11 December 2013 (UTC)

Thanks Gerard, have added Jokers

--Dwarring (talk) 01:20, 13 December 2013 (UTC)


It's a good thing I didn't mention bugs or wild cards --- or playing with more than five cards per hand (as in some stud poker games).

Bugs are jokers than can represent:

  •   any generic (non-specific) ace
  •   any card in a flush or straight (that isn't already in that hand)

Bugs (as in a type of jokers) are easy to program for when analyzing poker hands.

I once played a stud poker game with (all) red cards wild.
I'm still trying to figure out the programming required to support analyzing poker hands where there're more wild cards than non-wild cards (in addition to the jokers, of course).   Figuring out if there is a straight with three wild cards is daunting, especially when playing something like 7-card stud. -- Gerard Schildberger (talk) 07:28, 13 December 2013 (UTC)

Return to "Poker hand analyser" page.