US States
NJ Online Casinos
WV Online Casinos
PA Online Casinos
Michigan Online Casinos
Online Casino California
Online Casino Arizona
Online Casino NY
Real Money Casinos
Fastest Payout Casinos
Mobile Casino Apps
New Online Casinos
Casino Payment Methods
Sweepstakes
Sweepstakes apps
No deposit bonus
Daily login bonus
Sweepstakes games
Crown Coins
Funrize
Hello Millions
High 5 Casino
Jackpota Casino
Mcluck
MegaBonanza
PlayFame
Pulsz
RealPrize
Stake.us
Sweepstakes coins
Awards
Search forums
Free Games
Free Blackjack
Free Online Roulette
Free Slots
Bonuses
No Deposit Bonus
Crown Coins Promo Code
Funrize Primo Code
Hello Millions Promo Code
High 5 Casino Promo Code
Jackpota Promo Code
McLuck Promo Code
MegaBonanza Promo Code
Pulsz Promo Code
RealPrize Promo Code
Stake.us Promo Code
Games
Online Slots
Blackjack
Roulette
Poker
CardsChat Freerolls
How to Play Poker
Poker Hands
Poker Strategy
Free Online Poker Game
Poker Bonuses
Poker Tools
Poker Podcast
Poker School
Forum
News
Log in
Join
Search
Search
Search titles only
By:
Log in
Register
Search
Install the app
Install
Forum
Poker Discussion
General Poker
Some (open source) poker software I'm working on
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Subvertir, post: 1319627, member: 60570"] I guess this has been moved so it's cool to post an update? Hand evaluation works from Ruby now, you can add some code like this to the example: [code]# Okay... now let's see who has the best preflop hand. ordered_hands = [] (0...game.seats.count).each{|x| ordered_hands << [x,game.seats[x].holding.to_i(:std)] ordered_hands = ordered_hands.sort_by{|a|a[1]}.reverse! } (0...ordered_hands.count).each{|x| puts game.seat[ordered_hands[x][0]].pstar_name + " has cards: " + game.seat[ordered_hands[x][0]].holding.to_s + "with value: " + ordered_hands[x][1].to_s }[/code]To get the value of each pair of hole cards represented as a 32-bit integer: [code]Fred has cards: As Ac with value: 17563648 Albert has cards: 9d 9h with value: 17235968 Gerald has cards: 8s 8h with value: 17170432 Carol has cards: Ad 7d with value: 806912 Iota has cards: 6d Qc with value: 671744 Dave has cards: 2d 9c with value: 458752 Edward has cards: 3d 8c with value: 397312 Hiro has cards: 7h 6h with value: 344064 Bob has cards: 7s 2h with value: 327680[/code]You're probably thinking to yourself [B]what's the point?[/B] And you'd be right if you thought that this was just for hold'em hand evaluation, but that's not the case at all. I plan to make this support every game available on Full Tilt or Pokerstars, and as far as evaluating hands is concerned it's very close already. [code] # Get all possible values for seat 1's hole cards # Standard (holdem style) evaluation game.seats[0].holding.to_i(:std) # Low evaluation (worst hand scores highest) game.seats[0].holding.to_i(:low) # Low 8 evaluation (worst hand with 8 or lower qualifier) game.seats[0].holding.to_i(:low8) # Low 2-7 evaluation (ace always high 8 or lower qualifier) game.seats[0].holding.to_i(:low27) # Omaha hi/lo evaluation (8 or lower qualifier) game.seats[0].holding.to_i(:omaha) # Omaha hi game.seats[0].holding.to_i(:omaha_hi) # Type evaluation (just the type of hand, no value) # Returns an index into array of hand types from nothing to ace high straight flush game.seats[0].holding.to_i(:type) # Fast evaluator for 5-card hands (won't work with 2 cards) game.seats[0].holding.to_i(:evx5) # Fast evaluator for 7-card hands (won't work with 2 cards) game.seats[0].holding.to_i(:evx5) [/code]So, once the enumerator is working (the enumerator is just a piece of code that enumerates all possible outcomes of a given scenario), it will just take a few minutes to put together something like PokerStove, except that it will run on MacOSX and support every game available on Full Tilt or Stars (except for badugi, which currently has no evaluator - I plan to make one). [/QUOTE]
Insert quotes…
Verification
Post reply
Forum
Poker Discussion
General Poker
Some (open source) poker software I'm working on
Top