in reply to Texas Hold'ems Poker Analysis Tool
A couple of comments:
there's a good chance that you're wasting space and effort. Look for ways to reduce out the patterns. As an interesting exercise, you might try reducing the code to at least 1/4th of it's current size.if ( $sorted_values =~ m/a{2}/ or $sorted_values = ~m/b{2}/ or $sorted_values = ~m/c{2}/ or $sorted_values = ~m/d{2}/ or $sorted_values = ~m/e{2}/ or $sorted_values = ~m/f{2}/ or $sorted_values = ~m/g{2}/ or $sorted_values = ~m/h{2}/)
One final editorial. As Papow would say, poker isn't gambling. A true evaluation of the odds for a hand needs to include monetary aspects, the personalities and skills of the people playing a game, as well as represent not just individual hands, but the flow of play across sessions. Evaluate that and you'll have yourself a program. ;-)
()-() \"/ `
|
|---|