so for a holdem hand, which is 7 cards, do you just calculate the value for all possible 21 5-card hands and take the highest, which would represent the best possible hand?
The YT gods brought me here. I was thinking about what data structure would efficiently encode hands and ranks and I had just started. I was just going to use 4 bits per card value and total them to get counts to tally pairs, 3oaK and quads, then tally suits -- but it's obvious that just looking for 0001 or 0010 or 0100 or 1000 for a flush in the suit encoding is more elegant and obvious. Now I just have to do this to complete as I learn Python. I haven't done any development in 30 years and want to get back into it for my own sanity.
How is this different than Cactus Kev's Poker Hand Evaluation? It looks identical except you move the positioning of the A. Should probably give credit to the original creator of it.
so for a holdem hand, which is 7 cards, do you just calculate the value for all possible 21 5-card hands and take the highest, which would represent the best possible hand?
The YT gods brought me here.
I was thinking about what data structure would efficiently encode hands and ranks and I had just started. I was just going to use 4 bits per card value and total them to get counts to tally pairs, 3oaK and quads, then tally suits -- but it's obvious that just looking for 0001 or 0010 or 0100 or 1000 for a flush in the suit encoding is more elegant and obvious.
Now I just have to do this to complete as I learn Python. I haven't done any development in 30 years and want to get back into it for my own sanity.
Hi. Is this software available ?
Thanks!
How is this different than Cactus Kev's Poker Hand Evaluation? It looks identical except you move the positioning of the A. Should probably give credit to the original creator of it.