I am fairly new to Python, but trying to make a poker game. How do I determine the winner? I have 'scored' the hands 1-8, and given sub-scores for the high card, but how do I compare the scores of 4 players and then in the event of a tie, compare the sub-scores of the tied players? I have been contimplating this for 3 days now, and still come up blank. I wish I could post the code I have so far, but it is simply an empty def statement. Does anyone know a simple algorithm for this? Or even a long drawn out process would be fine at this point. Thanks.
txwooley
0
Junior Poster in Training
Recommended Answers
Jump to PostThat's an interesting challenge... If it were me I would use a two-tiered scoring system, whereby you could assign a value to the hand itself, ie:
high card = 1
pair = 2
two pair = 3
three of kind = 4
etc...Then, in the event of a tie, …
All 4 Replies
jlm699
320
Veteran Poster
txwooley
0
Junior Poster in Training
slate
241
Posting Whiz in Training
txwooley
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.