131 - The Psychic Poker Player

All about problems in Volume 1. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

dawynn
New poster
Posts: 47
Joined: Fri Jun 21, 2002 3:08 pm

Post by dawynn » Fri Aug 16, 2002 4:19 pm

Oops! I goofed again. (Sorry!) Actually it looks like your test for Straight Flush only allows for a Royal Straight, not a Royal Flush.

A Straight is any sequence of consecutively ranked cards, regardless of suit. Because of how they've defined the hands, an A, 2, 3, 4, 5 would count as a straight, so would a T, J, Q, K, A. However, I still wouldn't assume circularity. I would assume only the 'A' can float like this. So a Q, K, A, 2, 3 would not count as a straight.

A Straight Flush combines the concepts of a Straight and a Flush. So, it can be any sequence of consecutively ranked cards, but they must all be in the same suit.

David

nghiank
New poster
Posts: 31
Joined: Wed Nov 20, 2002 3:10 pm
Contact:

explain problem 131

Post by nghiank » Sun Jan 19, 2003 3:41 pm

?
Last edited by nghiank on Sun Apr 22, 2007 3:30 pm, edited 1 time in total.

Almost Human
Learning poster
Posts: 93
Joined: Sun Jan 12, 2003 3:30 pm

131 : "The Psychic Poker Player"

Post by Almost Human » Sun Nov 23, 2003 3:46 pm

I got WA

can somebody give me some sample input and output ?

In what condition cards can be considered as "straight-flush" ?
In what condition cards can be considered as "straight" ?

thank you for your help

Almost Human
Learning poster
Posts: 93
Joined: Sun Jan 12, 2003 3:30 pm

Post by Almost Human » Sat Nov 29, 2003 9:49 pm

I've got AC, thanks

El-idioto
New poster
Posts: 45
Joined: Mon Jul 14, 2003 9:42 pm
Location: Zoetermeer, The Netherlands

131 - Please test my input (225 games)

Post by El-idioto » Mon Jan 19, 2004 7:41 pm

Could someone please test the supplied test cases? I generated them with my random input generator. There are 25 lines for each possible type.

Code: Select all

AS 6C QS JS KS TS 2S 4H 6D 4S
JC TC 8S 8C 7H QC 9C TH 4H 2S
8H 5H AC 2H 2D 6H 7H 9H 7D 5D
JD TD AS QD KD 9D KC QC 6S 8C
JH 3H JD 7H 6H 4H 5H AC 9D TH
JC QC TC AD 8C 9C 3S TH 2C 3D
QS TS 5C KS 9S JS QC 2H 7D AS
TS 9S KC 7S JS 8S 5S 4S QC 6S
KC 8H 5D 6C AD 4D 2D 3D TS 3H
6H 8H 9H KD TH 7H 7D 8D QH 2D
AD 8C 9D 2C 4S JC 7C TC 9C TD
4D 5D 2D 2H AD 3D 8D JH 4C 8H
3S KS 2C AC 6S AS QS TS JS 9S
AD 4D 6D 3D 3C 5D 7D 3S 9S 4S
6S 9H 4H TC 7H JC 8C QC 9C 4S
QH 9H 5H JH 9C KH TH 5S TD 2C
KS AH TH KC JH QH KH JS 2C 5S
TC 2C 8C 7S 6C 9C 7C TD 9S 6D
9H TH 5H 8H 7H JH AH 3D KC 3S
9S QD QS 5H 2H 8S JS TS AC 4C
5S QD 2S 4H 3H AS 4S 3S 9C JS
5S 8C TC 7C JC 9C QC JH 7D 9S
9S JS TS QS 2H 8S 9D 7H AD 5S
8D 7D 4D 6D 8S 5D TD TS 3C TC
3H JC 8C AD 4H 6H 5H 7H 7C 8S
KD 7H 3C 7S 3S 7C JH 7D 3D TC
JC TS AD JD JS 9D JH 6S AC AH
KD 4S TS TC TD TH KC 5S 4C JC
3H 3C 6S TS 3D AH 3S 2S 7D AS
8H 9S TD JH 8S AD AS AH AC 3D
JC 5H 6D JD 7S 4S 4D 2H 4H 4C
9D AS 4D 9H 8D JD JC JH 7S JS
QD 5D AH AC KS AS AD 9S 6D 9H
3H 8D 9S 4S 9C 9H AD 9D 3S 4D
TS 6C 4D 4S 5S 4H JS 4C 9S 9H
3D KC 9D KS JC 5S KH KD 9H 6D
7D 6S 5D 5S 5H 5C 6H 9H KC JS
4C KH JD 4D 4H 4S 3D JH QD QC
JH KC QS QD QH 6D QC 9D 2S 8D
2D 3S AD 7D 3H 3D 6C 3C QC KS
6C 4H 6S 6H 5D 6D 8D 8C AD 3D
5C 5D AD 5S 8S 5H JS 8C 3C 3S
QC QH 8S 2C 3D 3H 3C 3S 7D 8D
3S 4C 8H TC 3D 7D 3C 3H QC AD
9S 4S 9C 9H 9D 3S 3C TS 2S 2D
TC 6H 5S 7D 3H 7S 7H 9C 7C 5C
9H 7C TH 7S 6D KS 7D 7H 3D 9C
4C TS KS AD TH TD 8C TC KD 7H
JH 9S 7D 3D 7S 7C 9D 7H 5S KS
AH 3C QC 5C QD QS 9H QH AD 9D
AC 4C 4S JD 2H 2D JS 2C QS 9S
AD 4D 8H TH TC 8S TD AC 7D JH
8D 9C AS 6S 3D 9D KD KS KC QH
5C KH AH KS 7S AD KC 8S 5S 2H
8S 7C 2D 4D AH AD 4C AS KD 6S
6D 3H 8S 2D 2C 2H JD JC TC AD
2H QH AD JH 6H QC QD 6S 4C TH
9C 4D KS AC 4S 8H 8D KH KC 5H
QC KS QH 7C AC QS AD JS 5S 3D
5D JS JH QS AD QC JC TC KC 3S
3C 9H KH 2D 3D TC TS TH 9C 6H
KC 6C KD TD 7C 8C 8S 8D 5C 3C
9D 8S 4H JD 4S 8D 4D 8C QC 2S
TC 8S 5S JD 8D 8C 5C AD 2C 9H
KH JD JC 8D 2H KS 2C 2D 6H AC
JC QD QH 2H AH QS 2S TC TS 5H
7D 7H 4C 4S 2C 7C 3D 6D JH 3H
9D 3C TH TS 3H KS KC TC 7C 6S
8S 4H 9D QS QC 8D 8C JH 3D 7D
6H 6S 4H JS 6D 4C 2H AC 3D QC
AC AH 2H 4S 6C 6D AD TC QH JS
4S 8S KS QH 8D 8C KD TH 6C 3C
AC 8D AS 8C JH AH 7D 5D KD 9H
JD JH 6C 5D 4C 6H 6S 5H TD AD
6H 3H 4S JC AS 9H 4H 4D 9C JD
5C 9H QH 8D TH 8H 7H QS JS TS
6C 5S 5H TH 6H QH 2H 9H AD 5C
9H 9C AC 3C AS 6C KC TD 8S 4S
4S QH 4H 6H 7H 3H KD 5H 9D TH
AD AC QC QS TC 3C 9C AH JC 4D
2H 5S 3H KH 4H 5H 3D JC JH KS
AD QH 9H 7S 9S TH 2H 5H KC AC
5C 6C 9D 2H AH JC 2C AC QC 3H
7D KD 5H 3D 6D 2D TC 3S TD QH
TD 3H 2D 4D JH QD 7D 7H AH 9H
QD 2S AS 9C 9S QS 8S 3D AD KH
6S 9D 2C 5D 8C JC 9C TC KD AS
KH 6H 5H 7S 4D QH 2H 2C 6C 7C
2S QD 6S 7S 8S 4S AD 9H KH QH
6S TS 2D 7S 8S 4S 2H 3H 8H 6D
AH KC TC TD 2H 6H TH QH 8S 8C
9H 8H AD AC 4D 7D 2D QD 4C 4S
2H 4H JD JH 3D AH 7H 5D 5C 9C
KC TC 6C JC 2C 6H 4D 6S QC 4S
6S TH JH 5S 6H 4H 5H QD 3C AC
2H 6C 7C 7H 9C 5H JH 4H 3D AH
6C 8S QS AS KS JS 3D 6H 9D 4S
JH 7D 4H AH 7H 2H 3D 2D 8C TS
5C 3D 6D 5D QS KS 3S 5S 4S 9H
JH 7C 2H QD 5D 9D 8D JD KS 4S
6H KH 4H AH QS JS TS QC JH 4S
9D 2H 9C TD 7C 7H TH 8H JC TC
AD 8D JH 3H QC TS KD 3S 9S TC
2S 5S QD 6H KD 3H 2H 4S 3D TC
3H 8D 6D TC 9H QH JH 2S 2D AS
9D 3S TD 6S 8D 5S AH 2S 4C JC
9S 7D 6S AC TD 8C 8D 9D 4S 8S
AD TS AH KS QH JH 6D 9S 4H 2H
7D 5H 9C TH JD 8S 2D 4H AH KD
8S 9D JH AS TH QS 7S KH JC 3H
9H 9C 9S 2C 8D JS 7D TD 4S 3C
7H 9H 8C 6H TD 8D AS JD 2C 4H
QH TC 9D 8D 9H JC 4D TH 3C 6D
QD AS 5C 3H 6S KC TD QS JD 5D
9C 8H 6H JS 8S JC TC 9H 7H KS
5S 9C 7H 6H KS 8C 2D 5C 5H 7C
JH 8C 7H TH KC 9D 8D 2D 4C KH
2C QH 7D JH QD TH AS KD QS 7H
JD 2H 7H AS 9C 8S TC 4D 5C 2D
JS KS 5C QD 9H TC 7S 4C 2S 4D
3D 2D KH 4D TC 7D 5S 6C 4H JD
QD TS JD 4C 8D 2S 6S 5H 3C 2D
7D TD TH JD AD 5C 4D 6H 3C KS
6S KH 9C 7D 4S 5C 3S QD TH 4D
7C JD KC 4H KD 5H 3S AS 2H 6D
6S 7H JD TH 5C 2D 7S 7D 3S 2C
4C KD QC 2S TC KH 6S KC JS QH
9S AS QC QH 4C QS KC 5C 5S 4S
9D KC TC 2S 9H KH 5S 9C 7D 2H
QS 5D QD QH KD 6C 8H 2C 2D 8S
KD KS 7C 6S KC TC 5C QH 3H 4D
JS TS AD JD TD 7H 6H AC AH TH
8D 3D JC QH QD 4S 2C QS 8H JH
6H 9C 4C 5D 8D 4H 4D AD 2D JC
5D KD 9C QD AH AS 3S 6S AD 6D
JC 4H TD TS 2H JD 3S TH 6H 4S
4C 4H KH 4S 8D 9C 6C 2C 8H AC
6H 4S QC 6C JH 9S 5D 6D TH 4H
KD 8C TH AH 8S KC JD 4S KH 5C
7C TH 4S 3C 5S 7D QH TS TD 8D
TD 9C AH 8C KC 7H 8H TS TH 8S
8H 4S 4D 5S TD 4C 2D 7C 2C AD
KS AS AD KH QH 7H 2S KD 9C 5S
TC AC AD 6D AS 4H 9S 2H TH 9H
6H 2D 6D KC 4H 3H 7H 6C 9H TH
6D JH 6S 5C 6C AS 9D 3S 7H 2S
3H QH 3S 5C KD 6H KC JD KS 9S
7D QS TC 9C TD TS AH 8H 2D 4S
6D AC JS JH JD 4H TS 4S TH 7C
9S QH 8S 7H KC 9D 2S 9C JD JH
QS 9H AC KD 9S QH 3D 3S 7C 5C
7C 4H 2H 8S TD 7D QC 4C 3D 5H
6C 9C 3S JD 7C 5D 3C 7S AD 4S
6C QH 8C 3C 5S AS AH 5H 2H 3H
KC TH 3C 4S AH 8C 9C KH 8D 6D
8H 8C 2C 9C TC 3S TH KS 7C JC
TD 8S JC TC 9D AC 9S JH KH QC
JD 6S 6C QH 4S AC JH TC QS QD
7S 3D QH QC 2H TH 7H TD 6H 7C
7S 3H 5H 2H QH TD QC TC 3S 4D
9C TD QD 5S 4H 5H 8S 8H AS KC
4S JC 3D 8D 8H 6S QD 6C 4H 3S
AD 6H TD KS AC KC QS 2D 8S 2C
JC 9D 9H JD TC KD 8D QC 5D TH
JC 8D 2S AC 9D 4H JD AS KS 7D
8S AH KD 7S 3H AS 3S 6H 9H 2S
KS TH QH 5H 9S 9D 8S 3H 8C JH
8S QS 5C 4C QD 3S 5S 4D 8C 6C
7H 3H QS QD 7C 5C 8S 6C AD AS
6D 9C 7H 9D 7S 6H QS QD JD KC
2C 6H 8S 7D 5H KS KH 6C 5D 9H
2S 5C 3H QS KS JH QH TH TC 4D
AS JS TC TH 8D 8C 3C 5S QH QC
7S 2H 5H 5C 4S 2C JS AH JD 7C
TC 7C 4H KS 3S 2S 2H 9C TS 8C
JH 5S 8D 7S 5C AH TH 3C 6H 4D
JD TD QC TH 5C 3C 8C 6S KC 3H
QC JC 2S JD 7S 6H AD 4S TH 6C
KS KD 5D 7D 3C QH 8C 3D 6D JC
3C 7C 6H 2H KH 2D AD QH 4D QS
4S 4C KC TH 5H 8C QH 6H 5S 6D
5D JD 2H 2C 4D 8S 6C QC 3H TD
2C 9H 4H 6C 2S JS 3S 8D TH JD
2H 5C 9S QC 4S 2C AS KS 5S 7S
AC 7S KH 9D JH 4S JC 2D 7D QC
AD 9C 2D AC 8C JH 7H 8S 3D 4S
KD TS KH 8H 4D 9H 5D 6C QH JH
3H 7H 6D 3S 4H QS TD 4C AC AS
KC QS 3H 8C 9C 9D 4H 7C 3C AS
KC 4H 8H TS 6D TD QC JS 8S JC
TD QD 4S 2C 7C QS JD 6D 9D 3H
6D 7D 6S 9H 3H AH 2H JC 5H 7C
8C 4C 9S TC KD 8H 7S 2H TS TH
4S 5C 7S JD 2S QS KD 8C TS TD
AD TD 8C QC 6S KS 6H JS 4S 9H
AD QC 2C TS 3C QD 4S 6D 2D 7H
8C JH AH 4C 9D TH KS 3S AS 2D
9D 3H TC QS 2C 7H TD 4D KC AC
5C 6D 7S AC 9H 5H TS 3H 2D JH
KS 2C 3C JH 2H 6S 7H 8D QC 8H
3S 8D QH 4C 5D KC 7C AS JH 5S
3S 9S AH 4C KH 8D JS 7D 6D 5H
TS 9H AD 6D JH QC 2D 5C 3D AC
2H TC 6C 3H AC 9S 4C QS JC KS
2D 8C TD JC 4S 5S 9H KC 3S TH
QS 8C 2C TS 6S KS 4C 7S 3D 2D
4S AH 3D JC QH 9C 2S 7H 6D 5S
4S TD 7S 9C 3S KD 5S 2D JD 3C
JS 7D AS 5H 4C 9H 2D TS 8D 4D
2D KD 4D 3C 9C AD TS 8H QC 3S
5S 7H 6C 9H 8H 3H KS AC TD 6D
3D TD 6H 7H AH QS 4S 5S KC 9C
KD 9H 4C AH JS TS 5C 3S 8D 6S
KS 8C JS 9S AH 5S 7C 3S 4C QD
8D 5C TC AD 6S 4H JC 7H QH TD
6D JD TC 4C AC 9H 3D QH 8D 5C
AS 7S 9C KC 3C QH 6D TC 2H 4C
TS JH 5C 7C 4H QD KC 2S 6C 3H
5S 6S 3H 4D AS 8C TC 7H KH 3D
QH KC 4S 5D TS 7H 2S 6H 3D TD
6S 9H TS 7D JC 5H KC 8H QC 4H
KS 2H QS 3C 7C 6D AC 5S 4D TC
AH QH 6S 5S TH KH 2D 4H 7D 8C
5S 9S JH 6S TC KS AH 8S 2S 6H
5C KS 8S AH 2D 3C TC JD 7C AD
My WA program gives for the 225 lines:
  • 001-025 = straight-flush
    026-050 = four-of-a-kind
    051-075 = full-house
    076-100 = flush
    101-125 = straight
    126-150 = three-of-a-kind
    151-175 = two-pairs
    176-200 = one-pair
    201-225 = highest-card
Thanks a lot.

Almost Human
Learning poster
Posts: 93
Joined: Sun Jan 12, 2003 3:30 pm

Post by Almost Human » Tue Jan 20, 2004 6:12 am

Dear El-idioto,

My AC program gives this answer for your input in line 211:

Hand: 5S 7H 6C 9H 8H Deck: 3H KS AC TD 6D Best hand: straight, while your input gives highest-card ( 5S 6C 7H 8H 9H is a straight, am I right ? )

I hope it helps you ...

El-idioto
New poster
Posts: 45
Joined: Mon Jul 14, 2003 9:42 pm
Location: Zoetermeer, The Netherlands

Post by El-idioto » Tue Jan 20, 2004 7:00 pm

Dear almost-human,

Shiver me timbers! You're right.
I didn't handle the case where no cards were switched correctly.

But, to my great dismay, I still have WA! :o

Could you please also check the following input?

Code: Select all

TH KD AH JH QH 9H 8H 6C TC QC
JS 7D 9S AS 7C TS 8S QS 2S 4D
2S 6S 3S AC 6H 5S 4S QS 7C TS
9C KH 6C JH 3C 2C 5C 4C AC 6D
9C 6C TC 5C 3C 7C 4C KC QH 2D
8C 5S 6S 4S TC 3S 7S QS QD JD
KC 5C 9H QS JH 8S JS 9S TS 9C
QD AD 3C JD 4D TD KD 3H 4H TH
3S KH TC AH 6S 9S 5S 7S 8S 7C
9D 4H 7H JS 2S 3S AS 5S 4S 5H
3H JH 7D AH TC QH KH TH 5S JC
TC JC 8H 7D 9C QC KC 6C AH 2S
7S 8H KD JC AD 8S 9S 5S 6S 9D
9S 7S 8H 8S KH TS 6S 2C QS 6H
8H KS 9S 2D JS TS QS KC QH 4S
AS 2S 3S 2H 4S 5S KD 8D QH AC
6D 6C TC 8D 9C 8C QC JC 3C 9H
TD 6D 7H 5H 4H 3H 6H AD 5D 2C
TC 7C 6C 9C JC 8C TH AD AH 4S
5D 8D QC 7D JS 6D TD 9D 4C 4H
9S JS 7S TH 5D QS KS TS 3S 8D
JD 5S 8H 4S 8S 6S 7S 2H 6D 7D
JS QD AS JH 7H TH 9H 8H 2D 5H
TS 8S 6C 9S 9D QS JS 3H 8D 5C
8S KH 8C 3D TC JC QC 9C 6S TD
JD JC 3C JS JH 5S 6D 4H 3S QD
5H 5C 5D JC 4D 8S 5S QS TH TD
6S TS QD 6D QS 4S 6C 6H 8D 8S
4D TS 4H AH 4S 4C 8C 3C 8D 5D
JC 5D 6S 7C 3H 6D 6H 6C KS TD
7H 5D 4S TD QD 8H 9C 9D 9S 9H
7H QD 7D KH 6S 8S 7C 7S QS 4D
5D QS 6H 6S 6D 3S 6C TS 4C 9H
2S 2C 7C 4C KC TD 2H 2D TC 9H
KH 5C 2H 8D QS KD 8C 8S 8H 7H
KH KC KD 7H 5D 3C KS 8D 6D AD
4S TS TH KC KH KS KD 2C 3C AC
2D 9D 2H 5H 2C 2S AD 4C QD 9H
2C AH TD AD TS JD AS AC 9H JC
5D JD 7S JS JH JC TC QH KS 4D
2D AS 2H JS TH 2S 6H 2C 3D 5H
QH QD JS 7S 2D 2H 2C AH 2S 6S
3H 7D 3S 2D 3D AS 3C 6C 9H JS
6D KS 2S 8H 2D 2H 2C 4H TS JD
6C TC KC 4H 5D 2S 4D 4S 4C AD
9S TC 9H TH QH TS JH TD 6H KS
3C QH 3D 3H KS 4S 3S 9H 8S 5H
4D 4C 8C 4H KC 2H 4S TC 9C 8D
4D 9D 3D 5D 4C 4S 4H 9S KC AS
9S 4C 2C QC 7H JC 2D 2H 2S KC
4H 8H 4S 9D 2S 8C 4C AH 2H 7D
5C KS 5S TC KC KD QC 8D 3C 6S
7H 8C 6S AS 7D 8S 7S 6D 7C 8H
7H QD 5C 9H 9S 9C QH 6C 4S 7S
9S 3D 8D KC QS QH QD 9H 7D TC
7S QC 9H 3H QH QS 9D TH 8H JD
8C KC 9H 9S AS 5H 5C 5S QS 9C
6D 3D TC JC TH AD 5S 5D 5H AH
QC 2D 3H 4D 6C 2H 2C 3S AC TD
7D 9H 3C 4H AD 4S 7H 4C 9D 7C
4C KH TH 4H 8D 4S 5C 5H 6D 6H
5S JD AC QH 5D 5C QS 4S 8S 3H
3S 9C 3C 9D 6S 3D 6D 7C QS TD
6D KH 4S 6C JC KS 6S AD KD KC
QD JH TD 5D 4C TS 3D TC 3S 9H
KC TH AH 7D 5S 8D 6H 8H 8C 6S
QD QS 2H JH 7D 6H 6S QC 9S 5H
3S 4H 5S 4D 3C 4C TH 8C AH 8H
TC TS TH 5H 6H 2H 2C 6C TD QH
8D 9C 5S 6D 9S 5H 9D 6C 4D 8S
4D 8H TD 4S QC TC TH 6H 7H AH
4H 5D KD TC 5H JH 9S JC 9H 9D
8S AS JC 4C QD 4H 8D 4S 3C TC
JD JS AH AC AS 5C 2C 2D 2S 4D
AH AC JS QD 6C JD AS 6S KD 8S
4C QC KD AC 2C 3C 9S TS 4H JS
5D 5H 3D AD 2S 2D JD 9D 8H KS
8C TS 3S 6H 7S QS 6S 2H 9D QD
JH 2S 3S 8H 2D 3H 9H 4H 6S 9D
6C 6S 8D 7H 4H 8C 7C 2C 3C 5H
3C JD AC 5C 4C 8C JS 4S 2D TH
4H QD 5C 7H 9D 2D JD KD TD 9S
9H QC JD 6C KH 5H 7H JH KD JS
5D 4C 6D KH JH 8D 4D QD QH AD
TS 6S 7D 4S AS JS 7C 7H 2S 8S
7S 6D 7C 8D 8C AC 4C 3C 5S JH
2C 5H QC JH JC 2S QS KS 6S AS
3S 4S QH 9H 6H 2H 8H KC JS 3D
6D JD TD AH KS 2D KD TH 9S TS
7H 6C KS 5S 4D 8S 3S 7S 6D JS
8C 2C QH 7C 3C 6C JH TS 5C 9D
8C 2H KH QC 8H 4H 5H 9D 3H KS
KH 4H KD TS AH 7H JH 8S 5C KC
2D 3C JC KC KH 9C QC 9H 2S 8S
JH 5D 6H AH 7D 2H 4H AD 8S AC
KC 2C KD JS TS 4C TC 7C QD AC
3H 7H 4C 5S 4H KH 6H QD 9C KS
3H 2H 3S TH 4C AH 5H 2C 5D 2D
4H 9H KH 7H 9C 6H 7D 8D JD KD
4D 9S 7D KD 6D 9D KH QD TS 8S
2D TD JD 6S QC AS KH 8C 4H QS
6S JD 2D 4C 8H 9D QH TH 2H AH
2S 4H 3H 7H AD 5H 6S 3C AC QH
7S TH 8H 5H 6C 9S KC KS 3C 7D
7C 5C 8H 2S AD 6C 9S 3D 8S 8D
5H 2C 6D QC 4H 3C JD 6C 5S TD
7H 2S 3H QD 8C AH 4D 5C 6D 8H
2C 6C 3H QS 8S 4S 7D 5C JD JH
9H 4S 3C QS 8C TD 8D JC 6S 6H
8C 2C TC 5D 8S 6S 4H 3H 7D 4D
2S 5C 7S AC 9D 5D 3S 4D 8H KS
6C 5S TD 2D 3C 4S 2C QD 9D 2S
3C QH JH 4C JS AS TH JD KD 7C
KH 8H 6H 9S JS 5S 4C 7H 4D 7D
QS 6C 8C 6S 9S TS 8D 7C 4S KH
6D 8D TD KC 7H 9C AH 4H 7D KS
7H 2S 6D 4H 5S 3H QS 5H 2H 7S
5S 5D 8H KD 4S 3S 2H 4H 6D 2C
5C QS KC 9D 9H TD QC JS TC AD
8H QH 4C 7C JC QS TC 9C 4S 3C
8C 7D 9C TS JH 6H JC QD 5H 2H
TS QH 2S KH JC 9C 5C TH QD KC
2D 5H 4D 3D 6D JS 9H JH 8H 7C
QH TD AC KC JD 9H 6C 2D 9C 9S
4D JH 5S 8S 7S TD 9S 4C 9H TH
9S 6S JH 2S 6C AC JS 7S JD 7D
9H 3D 7C 9D AC 9C TH 3C 5H 8S
5C KD QH 8C QD 3D 7C QC 6S 9S
8D 9S QS QD 9C KD QH 2S 4C 2H
JH 4D JD 4C QH 2C 4S TS AD 7C
8S QD KS QH 2D 3C QC 9C AD 6S
JH 3S 5D QC 7H JS JC 9D 3H 2C
2C AC 8H 4S JD AS 2D TH 2S 8D
9H 8D JD 6C KD JC 7D JS 6S 8H
AC 6D AD QC 9D AH 8C JD TD QD
KD 9D 8S 8C 8D 5D 4S TD 9H 3C
7H 8C 7D 2S TD 5H 7C 2H AC 3H
AC 9S TD AD AS 2H JD 9D QH KD
6C AH TD 8C 8H 7D JS 8S 3C KD
4D JD 2C KH 2S 7D 2H 5C 6C 4C
4S TD TH TS 2D KH 6D 5H 7H JD
QH 7H 5H QC JS 4H 5C QS 9C KC
JD 7C 3D 8D AH 8C QD 8H 9D 4H
7H KH TH AS 9C KC 5H 8H KS 2S
AC 4D 4S 6H 8H 5S 5H QS JC 5D
2C JD JH AC QS 2S 5D JS 6C AS
9C 7D QD 4H 7H AD 6D AC 8C AS
KS TD TC 6H AH QH 4D KD KH 3S
KC 9S 7H 8H 3S 3C 9H JD 9C 3D
9S TH 6C 6H KC 6D 4D JH AD TD
8D 8H 3D KH 5H 6H 3C QS TD 6C
5H KC 5C 4D 3H KD AC 2C 2H KS
4H 7H 5C QS 4C 7C 5S 2D 6C JS
TC TS KH 7D QS QH KC 9S 3S JH
AS 7C AD KC QD JC 2H JD 6S QC
5H QS 4C JD 6C QH 2D 2H 3D 8D
KS AC KC TH 4D 7D AH 4H 5C 8H
KD TC 9D KC TS 9H JH JC AD 2C
4S 2C 7C JC QC 3S 7S QH 8C 5D
AS QD 3C 2C 9S 7C TS TD AC 5S
JH TH 6D 2S 4D TC KD JD 7C 5D
7H 4H 3H AS KD JS 4C KC JC KS
AC 2H 3H 6S 7C QS JS JC 2C QH
4S 8D 8S 7S 7H 2S 6D 6H 8H JH
4H 5C 9H JH QS 3D 3S TC 2C 2D
5H 9S 2S TC 2C 5C JC 9H 6S 3D
3D 8D JS 8S JH 2D 7H 7D 6S TD
7H 9H 5C AH JC 9D 7D TS KS 8C
6H 5D 7H QH 7C KD KC QC TS 2C
TD 3C 7H TC 2C 8C 7D 6D JC 2D
QS 9D KH 9H 2D 4C QD JH KC TC
QH 4S 4D TS 9S 7C TD 8D QC KD
JD 3S AC 9S 5H TH 5D 8H TC 2H
QC JH QD 2H AS 9S TH 9H 7S 4S
7D 2C 3S TH 3C 5S 6C 6H 5H QD
AS 8C 6D 4S 6H JH KH 7S 4C QD
KC QD 4C 4S 5H 8C JC 9D 7C KH
KC JS TH KS 2D 3H AD JC 7C 4D
3C JH QD 9S TC 7S 6D 4D AS AH
AD TD 7S 4H KH 4S 9C 5H KD 9S
7H 7C JH KS TC 5C 6C 9D QD 8C
8H KS JS 8S 5H 9S AH 4H 3C KH
5S QC 7D 9S 4C 9C JH 2H 4D 9H
3H 8C AC 9C QS JD AS 7H KS TC
TC 3D 7H 5H KH 4H 9D 7C 6H KD
KS 6H 3H 7D JD AH KC 8D 5D JH
5C KD 9C 8H 2D 4H JH JS 3C 5D
5D QD 6C 6H JD 3C 2C TH KD QC
5C 2C 9C 3H AD 6H QH 6S JD AS
KC 7C 9H 6H 5C 3S 2H 6C KS 2S
AC QH 9D 6C 3S 2S JH TC 9H KH
8D 3D TH QC 6S JS AC 3C TD 6D
QS 8C 7C 9C 4C 6D QD JD 5H QH
8C 3H 9H 8S 7C KS 5C 6H 6C AD
KC JH 9H 2H 3C AH 7C QC KS 6C
4C 3D JC 5H AS 7C AD 2D TS 2C
5C 8D 2S JS TD 8H 6C 4S TS 8S
AC 3H TD 7C KC 9S KS 4D 5S 3D
TC 3C 8C 5H 8S 2H QH JH JS AH
8C 8S 6H 2D JC AC 7D QD 9H 2C
7S 9S 4D 5C 2S 8S QH TC KS 7C
3C 6D 7S TC AS 5C 2H JS 8H 4C
5H 4C JS 2H 6C 8D 3D QC AD JH
8C AH 9D KS QC 4C JC 3D TH KC
5C 9D TC 7S 4S 8S 3H QC KC AD
3H 6S 5S JH AC 9C 8D KC TH 2C
6H TS 7D 4H QC JD 9H 5C 2H 7S
KH AH TH 4H 9S 2S 3C QH 7H 5H
AS 8C JC KC 4S 7H 2C 5D QC 4D
TD KD JC 3S 7D 6S QD 5C 4S 8H
8D QC KS 9D 2S TD 7H 4S AD 5S
JH KD 9H 7H 6C 4C 8C AD QH JS
7C KD 3D 4H JH 6H AS 8S 5H JC
TS 4D 3S AH 6H QH 5H 2D 8H 6C
4C 8S 5C JH QS 3H TD 2H AD 7C
5S 3S 8C 6H 7C QC KH JD 2S 9H
9S 3D 8C JC 5S 7H AH TH QD 6H
5C 4D QS 9S 7C 8C 3S 2D TD 9H
5C 4S KC QH 2H 3S JC 8H 6H 7H
8S 6D 7D 3D 2D AH 5S TS KS QH
3S 6S AC TC 2H QS KC 7H 4H JH
2C TH QC 3S 4D 5C 7D 9C AD QH
9S TC AC 3D 8H 5S QH JD 7S 4C
AC 7H 2H TD QH 5H JC 8D 9C AH
7S 9S 4C QC 2H 5S AC 8H JH 7C
Thanks a bunch.

Almost Human
Learning poster
Posts: 93
Joined: Sun Jan 12, 2003 3:30 pm

Post by Almost Human » Wed Jan 21, 2004 6:13 am

For your convenience, I just paste my output here:

Hand: TH KD AH JH QH Deck: 9H 8H 6C TC QC Best hand: straight-flush
Hand: JS 7D 9S AS 7C Deck: TS 8S QS 2S 4D Best hand: straight-flush
Hand: 2S 6S 3S AC 6H Deck: 5S 4S QS 7C TS Best hand: straight-flush
Hand: 9C KH 6C JH 3C Deck: 2C 5C 4C AC 6D Best hand: straight-flush
Hand: 9C 6C TC 5C 3C Deck: 7C 4C KC QH 2D Best hand: straight-flush
Hand: 8C 5S 6S 4S TC Deck: 3S 7S QS QD JD Best hand: straight-flush
Hand: KC 5C 9H QS JH Deck: 8S JS 9S TS 9C Best hand: straight-flush
Hand: QD AD 3C JD 4D Deck: TD KD 3H 4H TH Best hand: straight-flush
Hand: 3S KH TC AH 6S Deck: 9S 5S 7S 8S 7C Best hand: straight-flush
Hand: 9D 4H 7H JS 2S Deck: 3S AS 5S 4S 5H Best hand: straight-flush
Hand: 3H JH 7D AH TC Deck: QH KH TH 5S JC Best hand: straight-flush
Hand: TC JC 8H 7D 9C Deck: QC KC 6C AH 2S Best hand: straight-flush
Hand: 7S 8H KD JC AD Deck: 8S 9S 5S 6S 9D Best hand: straight-flush
Hand: 9S 7S 8H 8S KH Deck: TS 6S 2C QS 6H Best hand: straight-flush
Hand: 8H KS 9S 2D JS Deck: TS QS KC QH 4S Best hand: straight-flush
Hand: AS 2S 3S 2H 4S Deck: 5S KD 8D QH AC Best hand: straight-flush
Hand: 6D 6C TC 8D 9C Deck: 8C QC JC 3C 9H Best hand: straight-flush
Hand: TD 6D 7H 5H 4H Deck: 3H 6H AD 5D 2C Best hand: straight-flush
Hand: TC 7C 6C 9C JC Deck: 8C TH AD AH 4S Best hand: straight-flush
Hand: 5D 8D QC 7D JS Deck: 6D TD 9D 4C 4H Best hand: straight-flush
Hand: 9S JS 7S TH 5D Deck: QS KS TS 3S 8D Best hand: straight-flush
Hand: JD 5S 8H 4S 8S Deck: 6S 7S 2H 6D 7D Best hand: straight-flush
Hand: JS QD AS JH 7H Deck: TH 9H 8H 2D 5H Best hand: straight-flush
Hand: TS 8S 6C 9S 9D Deck: QS JS 3H 8D 5C Best hand: straight-flush
Hand: 8S KH 8C 3D TC Deck: JC QC 9C 6S TD Best hand: straight-flush
Hand: JD JC 3C JS JH Deck: 5S 6D 4H 3S QD Best hand: four-of-a-kind
Hand: 5H 5C 5D JC 4D Deck: 8S 5S QS TH TD Best hand: four-of-a-kind
Hand: 6S TS QD 6D QS Deck: 4S 6C 6H 8D 8S Best hand: four-of-a-kind
Hand: 4D TS 4H AH 4S Deck: 4C 8C 3C 8D 5D Best hand: four-of-a-kind
Hand: JC 5D 6S 7C 3H Deck: 6D 6H 6C KS TD Best hand: four-of-a-kind
Hand: 7H 5D 4S TD QD Deck: 8H 9C 9D 9S 9H Best hand: four-of-a-kind
Hand: 7H QD 7D KH 6S Deck: 8S 7C 7S QS 4D Best hand: four-of-a-kind
Hand: 5D QS 6H 6S 6D Deck: 3S 6C TS 4C 9H Best hand: four-of-a-kind
Hand: 2S 2C 7C 4C KC Deck: TD 2H 2D TC 9H Best hand: four-of-a-kind
Hand: KH 5C 2H 8D QS Deck: KD 8C 8S 8H 7H Best hand: four-of-a-kind
Hand: KH KC KD 7H 5D Deck: 3C KS 8D 6D AD Best hand: four-of-a-kind
Hand: 4S TS TH KC KH Deck: KS KD 2C 3C AC Best hand: four-of-a-kind
Hand: 2D 9D 2H 5H 2C Deck: 2S AD 4C QD 9H Best hand: four-of-a-kind
Hand: 2C AH TD AD TS Deck: JD AS AC 9H JC Best hand: four-of-a-kind
Hand: 5D JD 7S JS JH Deck: JC TC QH KS 4D Best hand: four-of-a-kind
Hand: 2D AS 2H JS TH Deck: 2S 6H 2C 3D 5H Best hand: four-of-a-kind
Hand: QH QD JS 7S 2D Deck: 2H 2C AH 2S 6S Best hand: four-of-a-kind
Hand: 3H 7D 3S 2D 3D Deck: AS 3C 6C 9H JS Best hand: four-of-a-kind
Hand: 6D KS 2S 8H 2D Deck: 2H 2C 4H TS JD Best hand: four-of-a-kind
Hand: 6C TC KC 4H 5D Deck: 2S 4D 4S 4C AD Best hand: four-of-a-kind
Hand: 9S TC 9H TH QH Deck: TS JH TD 6H KS Best hand: four-of-a-kind
Hand: 3C QH 3D 3H KS Deck: 4S 3S 9H 8S 5H Best hand: four-of-a-kind
Hand: 4D 4C 8C 4H KC Deck: 2H 4S TC 9C 8D Best hand: four-of-a-kind
Hand: 4D 9D 3D 5D 4C Deck: 4S 4H 9S KC AS Best hand: four-of-a-kind
Hand: 9S 4C 2C QC 7H Deck: JC 2D 2H 2S KC Best hand: four-of-a-kind
Hand: 4H 8H 4S 9D 2S Deck: 8C 4C AH 2H 7D Best hand: full-house
Hand: 5C KS 5S TC KC Deck: KD QC 8D 3C 6S Best hand: full-house
Hand: 7H 8C 6S AS 7D Deck: 8S 7S 6D 7C 8H Best hand: full-house
Hand: 7H QD 5C 9H 9S Deck: 9C QH 6C 4S 7S Best hand: full-house
Hand: 9S 3D 8D KC QS Deck: QH QD 9H 7D TC Best hand: full-house
Hand: 7S QC 9H 3H QH Deck: QS 9D TH 8H JD Best hand: full-house
Hand: 8C KC 9H 9S AS Deck: 5H 5C 5S QS 9C Best hand: full-house
Hand: 6D 3D TC JC TH Deck: AD 5S 5D 5H AH Best hand: full-house
Hand: QC 2D 3H 4D 6C Deck: 2H 2C 3S AC TD Best hand: full-house
Hand: 7D 9H 3C 4H AD Deck: 4S 7H 4C 9D 7C Best hand: full-house
Hand: 4C KH TH 4H 8D Deck: 4S 5C 5H 6D 6H Best hand: full-house
Hand: 5S JD AC QH 5D Deck: 5C QS 4S 8S 3H Best hand: full-house
Hand: 3S 9C 3C 9D 6S Deck: 3D 6D 7C QS TD Best hand: full-house
Hand: 6D KH 4S 6C JC Deck: KS 6S AD KD KC Best hand: full-house
Hand: QD JH TD 5D 4C Deck: TS 3D TC 3S 9H Best hand: full-house
Hand: KC TH AH 7D 5S Deck: 8D 6H 8H 8C 6S Best hand: full-house
Hand: QD QS 2H JH 7D Deck: 6H 6S QC 9S 5H Best hand: full-house
Hand: 3S 4H 5S 4D 3C Deck: 4C TH 8C AH 8H Best hand: full-house
Hand: TC TS TH 5H 6H Deck: 2H 2C 6C TD QH Best hand: full-house
Hand: 8D 9C 5S 6D 9S Deck: 5H 9D 6C 4D 8S Best hand: full-house
Hand: 4D 8H TD 4S QC Deck: TC TH 6H 7H AH Best hand: full-house
Hand: 4H 5D KD TC 5H Deck: JH 9S JC 9H 9D Best hand: full-house
Hand: 8S AS JC 4C QD Deck: 4H 8D 4S 3C TC Best hand: full-house
Hand: JD JS AH AC AS Deck: 5C 2C 2D 2S 4D Best hand: full-house
Hand: AH AC JS QD 6C Deck: JD AS 6S KD 8S Best hand: full-house
Hand: 4C QC KD AC 2C Deck: 3C 9S TS 4H JS Best hand: flush
Hand: 5D 5H 3D AD 2S Deck: 2D JD 9D 8H KS Best hand: flush
Hand: 8C TS 3S 6H 7S Deck: QS 6S 2H 9D QD Best hand: flush
Hand: JH 2S 3S 8H 2D Deck: 3H 9H 4H 6S 9D Best hand: flush
Hand: 6C 6S 8D 7H 4H Deck: 8C 7C 2C 3C 5H Best hand: flush
Hand: 3C JD AC 5C 4C Deck: 8C JS 4S 2D TH Best hand: flush
Hand: 4H QD 5C 7H 9D Deck: 2D JD KD TD 9S Best hand: flush
Hand: 9H QC JD 6C KH Deck: 5H 7H JH KD JS Best hand: flush
Hand: 5D 4C 6D KH JH Deck: 8D 4D QD QH AD Best hand: flush
Hand: TS 6S 7D 4S AS Deck: JS 7C 7H 2S 8S Best hand: flush
Hand: 7S 6D 7C 8D 8C Deck: AC 4C 3C 5S JH Best hand: flush
Hand: 2C 5H QC JH JC Deck: 2S QS KS 6S AS Best hand: flush
Hand: 3S 4S QH 9H 6H Deck: 2H 8H KC JS 3D Best hand: flush
Hand: 6D JD TD AH KS Deck: 2D KD TH 9S TS Best hand: flush
Hand: 7H 6C KS 5S 4D Deck: 8S 3S 7S 6D JS Best hand: flush
Hand: 8C 2C QH 7C 3C Deck: 6C JH TS 5C 9D Best hand: flush
Hand: 8C 2H KH QC 8H Deck: 4H 5H 9D 3H KS Best hand: flush
Hand: KH 4H KD TS AH Deck: 7H JH 8S 5C KC Best hand: flush
Hand: 2D 3C JC KC KH Deck: 9C QC 9H 2S 8S Best hand: flush
Hand: JH 5D 6H AH 7D Deck: 2H 4H AD 8S AC Best hand: flush
Hand: KC 2C KD JS TS Deck: 4C TC 7C QD AC Best hand: flush
Hand: 3H 7H 4C 5S 4H Deck: KH 6H QD 9C KS Best hand: flush
Hand: 3H 2H 3S TH 4C Deck: AH 5H 2C 5D 2D Best hand: flush
Hand: 4H 9H KH 7H 9C Deck: 6H 7D 8D JD KD Best hand: flush
Hand: 4D 9S 7D KD 6D Deck: 9D KH QD TS 8S Best hand: flush
Hand: 2D TD JD 6S QC Deck: AS KH 8C 4H QS Best hand: straight
Hand: 6S JD 2D 4C 8H Deck: 9D QH TH 2H AH Best hand: straight
Hand: 2S 4H 3H 7H AD Deck: 5H 6S 3C AC QH Best hand: straight
Hand: 7S TH 8H 5H 6C Deck: 9S KC KS 3C 7D Best hand: straight
Hand: 7C 5C 8H 2S AD Deck: 6C 9S 3D 8S 8D Best hand: straight
Hand: 5H 2C 6D QC 4H Deck: 3C JD 6C 5S TD Best hand: straight
Hand: 7H 2S 3H QD 8C Deck: AH 4D 5C 6D 8H Best hand: straight
Hand: 2C 6C 3H QS 8S Deck: 4S 7D 5C JD JH Best hand: straight
Hand: 9H 4S 3C QS 8C Deck: TD 8D JC 6S 6H Best hand: straight
Hand: 8C 2C TC 5D 8S Deck: 6S 4H 3H 7D 4D Best hand: straight
Hand: 2S 5C 7S AC 9D Deck: 5D 3S 4D 8H KS Best hand: straight
Hand: 6C 5S TD 2D 3C Deck: 4S 2C QD 9D 2S Best hand: straight
Hand: 3C QH JH 4C JS Deck: AS TH JD KD 7C Best hand: straight
Hand: KH 8H 6H 9S JS Deck: 5S 4C 7H 4D 7D Best hand: straight
Hand: QS 6C 8C 6S 9S Deck: TS 8D 7C 4S KH Best hand: straight
Hand: 6D 8D TD KC 7H Deck: 9C AH 4H 7D KS Best hand: straight
Hand: 7H 2S 6D 4H 5S Deck: 3H QS 5H 2H 7S Best hand: straight
Hand: 5S 5D 8H KD 4S Deck: 3S 2H 4H 6D 2C Best hand: straight
Hand: 5C QS KC 9D 9H Deck: TD QC JS TC AD Best hand: straight
Hand: 8H QH 4C 7C JC Deck: QS TC 9C 4S 3C Best hand: straight
Hand: 8C 7D 9C TS JH Deck: 6H JC QD 5H 2H Best hand: straight
Hand: TS QH 2S KH JC Deck: 9C 5C TH QD KC Best hand: straight
Hand: 2D 5H 4D 3D 6D Deck: JS 9H JH 8H 7C Best hand: straight
Hand: QH TD AC KC JD Deck: 9H 6C 2D 9C 9S Best hand: straight
Hand: 4D JH 5S 8S 7S Deck: TD 9S 4C 9H TH Best hand: straight
Hand: 9S 6S JH 2S 6C Deck: AC JS 7S JD 7D Best hand: three-of-a-kind
Hand: 9H 3D 7C 9D AC Deck: 9C TH 3C 5H 8S Best hand: three-of-a-kind
Hand: 5C KD QH 8C QD Deck: 3D 7C QC 6S 9S Best hand: three-of-a-kind
Hand: 8D 9S QS QD 9C Deck: KD QH 2S 4C 2H Best hand: three-of-a-kind
Hand: JH 4D JD 4C QH Deck: 2C 4S TS AD 7C Best hand: three-of-a-kind
Hand: 8S QD KS QH 2D Deck: 3C QC 9C AD 6S Best hand: three-of-a-kind
Hand: JH 3S 5D QC 7H Deck: JS JC 9D 3H 2C Best hand: three-of-a-kind
Hand: 2C AC 8H 4S JD Deck: AS 2D TH 2S 8D Best hand: three-of-a-kind
Hand: 9H 8D JD 6C KD Deck: JC 7D JS 6S 8H Best hand: three-of-a-kind
Hand: AC 6D AD QC 9D Deck: AH 8C JD TD QD Best hand: three-of-a-kind
Hand: KD 9D 8S 8C 8D Deck: 5D 4S TD 9H 3C Best hand: three-of-a-kind
Hand: 7H 8C 7D 2S TD Deck: 5H 7C 2H AC 3H Best hand: three-of-a-kind
Hand: AC 9S TD AD AS Deck: 2H JD 9D QH KD Best hand: three-of-a-kind
Hand: 6C AH TD 8C 8H Deck: 7D JS 8S 3C KD Best hand: three-of-a-kind
Hand: 4D JD 2C KH 2S Deck: 7D 2H 5C 6C 4C Best hand: three-of-a-kind
Hand: 4S TD TH TS 2D Deck: KH 6D 5H 7H JD Best hand: three-of-a-kind
Hand: QH 7H 5H QC JS Deck: 4H 5C QS 9C KC Best hand: three-of-a-kind
Hand: JD 7C 3D 8D AH Deck: 8C QD 8H 9D 4H Best hand: three-of-a-kind
Hand: 7H KH TH AS 9C Deck: KC 5H 8H KS 2S Best hand: three-of-a-kind
Hand: AC 4D 4S 6H 8H Deck: 5S 5H QS JC 5D Best hand: three-of-a-kind
Hand: 2C JD JH AC QS Deck: 2S 5D JS 6C AS Best hand: three-of-a-kind
Hand: 9C 7D QD 4H 7H Deck: AD 6D AC 8C AS Best hand: three-of-a-kind
Hand: KS TD TC 6H AH Deck: QH 4D KD KH 3S Best hand: three-of-a-kind
Hand: KC 9S 7H 8H 3S Deck: 3C 9H JD 9C 3D Best hand: three-of-a-kind
Hand: 9S TH 6C 6H KC Deck: 6D 4D JH AD TD Best hand: three-of-a-kind
Hand: 8D 8H 3D KH 5H Deck: 6H 3C QS TD 6C Best hand: two-pairs
Hand: 5H KC 5C 4D 3H Deck: KD AC 2C 2H KS Best hand: two-pairs
Hand: 4H 7H 5C QS 4C Deck: 7C 5S 2D 6C JS Best hand: two-pairs
Hand: TC TS KH 7D QS Deck: QH KC 9S 3S JH Best hand: two-pairs
Hand: AS 7C AD KC QD Deck: JC 2H JD 6S QC Best hand: two-pairs
Hand: 5H QS 4C JD 6C Deck: QH 2D 2H 3D 8D Best hand: two-pairs
Hand: KS AC KC TH 4D Deck: 7D AH 4H 5C 8H Best hand: two-pairs
Hand: KD TC 9D KC TS Deck: 9H JH JC AD 2C Best hand: two-pairs
Hand: 4S 2C 7C JC QC Deck: 3S 7S QH 8C 5D Best hand: two-pairs
Hand: AS QD 3C 2C 9S Deck: 7C TS TD AC 5S Best hand: two-pairs
Hand: JH TH 6D 2S 4D Deck: TC KD JD 7C 5D Best hand: two-pairs
Hand: 7H 4H 3H AS KD Deck: JS 4C KC JC KS Best hand: two-pairs
Hand: AC 2H 3H 6S 7C Deck: QS JS JC 2C QH Best hand: two-pairs
Hand: 4S 8D 8S 7S 7H Deck: 2S 6D 6H 8H JH Best hand: two-pairs
Hand: 4H 5C 9H JH QS Deck: 3D 3S TC 2C 2D Best hand: two-pairs
Hand: 5H 9S 2S TC 2C Deck: 5C JC 9H 6S 3D Best hand: two-pairs
Hand: 3D 8D JS 8S JH Deck: 2D 7H 7D 6S TD Best hand: two-pairs
Hand: 7H 9H 5C AH JC Deck: 9D 7D TS KS 8C Best hand: two-pairs
Hand: 6H 5D 7H QH 7C Deck: KD KC QC TS 2C Best hand: two-pairs
Hand: TD 3C 7H TC 2C Deck: 8C 7D 6D JC 2D Best hand: two-pairs
Hand: QS 9D KH 9H 2D Deck: 4C QD JH KC TC Best hand: two-pairs
Hand: QH 4S 4D TS 9S Deck: 7C TD 8D QC KD Best hand: two-pairs
Hand: JD 3S AC 9S 5H Deck: TH 5D 8H TC 2H Best hand: two-pairs
Hand: QC JH QD 2H AS Deck: 9S TH 9H 7S 4S Best hand: two-pairs
Hand: 7D 2C 3S TH 3C Deck: 5S 6C 6H 5H QD Best hand: two-pairs
Hand: AS 8C 6D 4S 6H Deck: JH KH 7S 4C QD Best hand: one-pair
Hand: KC QD 4C 4S 5H Deck: 8C JC 9D 7C KH Best hand: one-pair
Hand: KC JS TH KS 2D Deck: 3H AD JC 7C 4D Best hand: one-pair
Hand: 3C JH QD 9S TC Deck: 7S 6D 4D AS AH Best hand: one-pair
Hand: AD TD 7S 4H KH Deck: 4S 9C 5H KD 9S Best hand: one-pair
Hand: 7H 7C JH KS TC Deck: 5C 6C 9D QD 8C Best hand: one-pair
Hand: 8H KS JS 8S 5H Deck: 9S AH 4H 3C KH Best hand: one-pair
Hand: 5S QC 7D 9S 4C Deck: 9C JH 2H 4D 9H Best hand: one-pair
Hand: 3H 8C AC 9C QS Deck: JD AS 7H KS TC Best hand: one-pair
Hand: TC 3D 7H 5H KH Deck: 4H 9D 7C 6H KD Best hand: one-pair
Hand: KS 6H 3H 7D JD Deck: AH KC 8D 5D JH Best hand: one-pair
Hand: 5C KD 9C 8H 2D Deck: 4H JH JS 3C 5D Best hand: one-pair
Hand: 5D QD 6C 6H JD Deck: 3C 2C TH KD QC Best hand: one-pair
Hand: 5C 2C 9C 3H AD Deck: 6H QH 6S JD AS Best hand: one-pair
Hand: KC 7C 9H 6H 5C Deck: 3S 2H 6C KS 2S Best hand: one-pair
Hand: AC QH 9D 6C 3S Deck: 2S JH TC 9H KH Best hand: one-pair
Hand: 8D 3D TH QC 6S Deck: JS AC 3C TD 6D Best hand: one-pair
Hand: QS 8C 7C 9C 4C Deck: 6D QD JD 5H QH Best hand: one-pair
Hand: 8C 3H 9H 8S 7C Deck: KS 5C 6H 6C AD Best hand: one-pair
Hand: KC JH 9H 2H 3C Deck: AH 7C QC KS 6C Best hand: one-pair
Hand: 4C 3D JC 5H AS Deck: 7C AD 2D TS 2C Best hand: one-pair
Hand: 5C 8D 2S JS TD Deck: 8H 6C 4S TS 8S Best hand: one-pair
Hand: AC 3H TD 7C KC Deck: 9S KS 4D 5S 3D Best hand: one-pair
Hand: TC 3C 8C 5H 8S Deck: 2H QH JH JS AH Best hand: one-pair
Hand: 8C 8S 6H 2D JC Deck: AC 7D QD 9H 2C Best hand: one-pair
Hand: 7S 9S 4D 5C 2S Deck: 8S QH TC KS 7C Best hand: highest-card
Hand: 3C 6D 7S TC AS Deck: 5C 2H JS 8H 4C Best hand: highest-card
Hand: 5H 4C JS 2H 6C Deck: 8D 3D QC AD JH Best hand: highest-card
Hand: 8C AH 9D KS QC Deck: 4C JC 3D TH KC Best hand: highest-card
Hand: 5C 9D TC 7S 4S Deck: 8S 3H QC KC AD Best hand: highest-card
Hand: 3H 6S 5S JH AC Deck: 9C 8D KC TH 2C Best hand: highest-card
Hand: 6H TS 7D 4H QC Deck: JD 9H 5C 2H 7S Best hand: highest-card
Hand: KH AH TH 4H 9S Deck: 2S 3C QH 7H 5H Best hand: highest-card
Hand: AS 8C JC KC 4S Deck: 7H 2C 5D QC 4D Best hand: highest-card
Hand: TD KD JC 3S 7D Deck: 6S QD 5C 4S 8H Best hand: highest-card
Hand: 8D QC KS 9D 2S Deck: TD 7H 4S AD 5S Best hand: highest-card
Hand: JH KD 9H 7H 6C Deck: 4C 8C AD QH JS Best hand: highest-card
Hand: 7C KD 3D 4H JH Deck: 6H AS 8S 5H JC Best hand: highest-card
Hand: TS 4D 3S AH 6H Deck: QH 5H 2D 8H 6C Best hand: highest-card
Hand: 4C 8S 5C JH QS Deck: 3H TD 2H AD 7C Best hand: highest-card
Hand: 5S 3S 8C 6H 7C Deck: QC KH JD 2S 9H Best hand: highest-card
Hand: 9S 3D 8C JC 5S Deck: 7H AH TH QD 6H Best hand: highest-card
Hand: 5C 4D QS 9S 7C Deck: 8C 3S 2D TD 9H Best hand: highest-card
Hand: 5C 4S KC QH 2H Deck: 3S JC 8H 6H 7H Best hand: highest-card
Hand: 8S 6D 7D 3D 2D Deck: AH 5S TS KS QH Best hand: highest-card
Hand: 3S 6S AC TC 2H Deck: QS KC 7H 4H JH Best hand: highest-card
Hand: 2C TH QC 3S 4D Deck: 5C 7D 9C AD QH Best hand: highest-card
Hand: 9S TC AC 3D 8H Deck: 5S QH JD 7S 4C Best hand: highest-card
Hand: AC 7H 2H TD QH Deck: 5H JC 8D 9C AH Best hand: highest-card
Hand: 7S 9S 4C QC 2H Deck: 5S AC 8H JH 7C Best hand: highest-card

I hope it helps you

El-idioto
New poster
Posts: 45
Joined: Mon Jul 14, 2003 9:42 pm
Location: Zoetermeer, The Netherlands

Post by El-idioto » Wed Jan 21, 2004 5:08 pm

Dear Almost Human,

I'm quite at a loss now. :cry:

Since our outputs on problem 131 agree, is it alright if I send you a really large input file by email? If you redirect your output to a file you could send it back to me.

Hopefully that will result in a different result between your code and mine.

My email address is SHBouwhuis@Hotmail.com

PS
Can I use Rar for sending the input file (preferred), or do you want it in Zip format?

PPS
If anyone wants my random input generator, mail me about it.

El-idioto
New poster
Posts: 45
Joined: Mon Jul 14, 2003 9:42 pm
Location: Zoetermeer, The Netherlands

Post by El-idioto » Fri Jan 23, 2004 7:49 pm

Oh my God!!!

I'm a super idiot! The reason I couldn't find any differences was because I printed the names incorrectly!
Instead of printing three-of-a-kind, I printed three_of_a_kind.
So, all dashes were underscores for me :evil: :evil: :evil:

minskcity
Experienced poster
Posts: 199
Joined: Tue May 14, 2002 10:23 am
Location: Vancouver

Post by minskcity » Sun Aug 15, 2004 5:13 am

Can anybody explain to me what "straight" is?
how can "Hand: AC 2D 9C 3S KD Deck: 5S 4D KS AS 4C"
be: "Best hand: straight" ?????

I see it as 2 3 4 4 5 9 K K A A - where is the straight?

minskcity
Experienced poster
Posts: 199
Joined: Tue May 14, 2002 10:23 am
Location: Vancouver

Post by minskcity » Sun Aug 15, 2004 5:25 am

Never mind, got AC by try and error - A 2 3 4 5 is a straight... :-? I play a different variation of poker. 8)

User avatar
sohel
Guru
Posts: 856
Joined: Thu Jan 30, 2003 5:50 am
Location: New York

131 poker( is the problemstatement complete?)

Post by sohel » Mon Nov 22, 2004 7:02 am

To me the problem statement is a bit incomplete..
.. in the sense that it never actually explains the proper meaning of flush, straignt, full house and etc.

I guess we are supposed to know that there are 52 cards in a standard pack and should be well conversant with the ranks and suits...
... but knowing how to play poker should not be a pre-requisite for this ( or infact any) problem and more so because of the variation that the game posseses.

To me all the problems should be set in such a way that even someone not familiar with programming understands what the problem asks us to do. To add, there was recently a question where the problemsetter mentioned the word palindrome with out explaining what it actually is..
... even though this( palindrome ) is a common word but still the meaning should have been briefly discussed.

Mohammad Mahmudur Rahman
Experienced poster
Posts: 154
Joined: Sat Apr 17, 2004 9:34 am
Location: EEE, BUET

Post by Mohammad Mahmudur Rahman » Sun Jan 23, 2005 7:59 pm

According to http://www.online-poker.com/poker_hands.htm -
Straight - Five cards in sequence, but not in the same suit.
A straight is a hand in which all of the cards are consecutive.
Then why shouldn't the 6th case in the sample input ->

KS AH 2H 3C 4H KC 2C TC 2D AS

produce straight instead of three-of-a-kind? As I see, the cards in the hand are in a sequence [K A 2 3 4]. Even there's no need for a change! :o
You should never take more than you give in the circle of life.

Mohammad Mahmudur Rahman
Experienced poster
Posts: 154
Joined: Sat Apr 17, 2004 9:34 am
Location: EEE, BUET

Post by Mohammad Mahmudur Rahman » Mon Jan 24, 2005 8:01 pm

Got AC at last. I must confess the definition of straight with which I could manage it to work was a strange one to me. I had to consider a wraparound case [A 2 3 4 5] but no other wraparound cases were allowed. :o Any explanation will be gladly welcome. :P
You should never take more than you give in the circle of life.

Post Reply

Return to “Volume 1 (100-199)”