Poker-AI.org
http://poker-ai.org/phpbb/

Buying Omaha Equity calculator
http://poker-ai.org/phpbb/viewtopic.php?f=33&t=3210
Page 1 of 1

Author:  dobor99 [ Wed Apr 17, 2019 3:57 pm ]
Post subject:  Buying Omaha Equity calculator

Hello,

Does anyone have source code for Omaha Equity Calculator for sell, ideally for c#. Would be good if already using preflop LUTs for headsup.

Author:  mlatinjo [ Thu Apr 18, 2019 12:11 am ]
Post subject:  Re: Buying Omaha Equity calculator

I need it also for c# :)
Do you have some code in c# for representing hands in omaha?

Author:  nefton [ Fri Apr 19, 2019 12:35 pm ]
Post subject:  Re: Buying Omaha Equity calculator

imho it is same as in holdem. 1st watch if it is possible to get straight_flush from a cards, then 4_of_a_kind and so on.
Then convert it to integer 64bit value. For example like this:

Code:
// Convert hand value to unsined long number (32 bits)
//          4th byte                 3rd byte                    2nd byte                  1st byte
//   [7][6][5][4][3][2][1][0]  [7][6][5][4][3][2][1][0]  [7][6][5][4][3][2][1][0]  [7][6][5][4][3][2][1][0]
//    |  |  |  |  |  |  |  |    |  |  |  |  |  |  |  |    |  |  |  |  |  |  |  |    |  |  |  |  |  |  |  |
//                                           --- STRAIGHT FLUSH ---
//   [0][0][0][0][0][0][0][0]  [0][0][0][0][1][0][0][1]  [0][0][0][0][0][0][0][0]  [0][0][0][0][*][*][*][*]
//                                         [ hand type]           Hi card in street(0-12)----->[          ]
//                                           --- FOUR OF A KIND ---
//   [0][0][0][0][0][0][0][0]  [0][0][0][0][1][0][0][0]  [0][0][0][0][*][*][*][*]  [0][0][0][0][*][*][*][*]
//                                         [ hand type]              [   four   ]              [          ]<---Hi card from the rest of cards
//                                             --- FULL HOUSE ---
//   [0][0][0][0][0][0][0][0]  [0][0][0][0][0][1][1][1]  [0][0][0][0][*][*][*][*]  [0][0][0][0][*][*][*][*]
//                                         [ hand type]              [   trips  ]              [   pair   ]
//                                                --- FLUSH ---
//   [0][0][0][0][0][0][0][0]  [0][0][0][0][0][1][1][0]  [0][0][0][*][*][*][*][*]  [*][*][*][*][*][*][*][*]
//                                         [ hand type]           [         Fife hi cards in flush        ]
//                                              --- STRAIGHT ---
//   [0][0][0][0][0][0][0][0]  [0][0][0][0][0][1][0][1]  [0][0][0][0][0][0][0][0]  [0][0][0][0][*][*][*][*]
//                                         [ hand type]           Hi card in street(0-12)----->[          ]
//                                           --- THREE OF A KIND ---
//   [0][0][0][0][0][0][0][0]  [0][0][0][0][0][1][0][0]  [0][0][0][0][*][*][*][*]  [*][*][*][*][*][*][*][*]
//                                         [ hand type]              [  trips   ]  [    1st   ][   2nd    ]<---Values of two hi cards         ]
//                                             --- TWO PAIRS ---
//   [0][0][0][0][0][0][0][0]  [0][0][0][0][0][0][1][1]  [0][0][0][0][*][*][*][*]  [*][*][*][*][*][*][*][*]
//                                         [ hand type]              [ Hi pair  ]  [ Low pair ][ hi card  ]
//                                                --- PAIR ---
//   [0][0][0][0][0][0][0][0]  [0][0][0][0][0][0][1][0]  [*][*][*][*][*][*][*][*]  [*][*][*][*][*][*][*][*]
//                                         [ hand type]  [   pair   ][          ]  [          ][          ]<---three hi cards
//                                              --- HI CARD ---
//   [0][0][0][0][0][0][0][0]  [0][0][0][0][0][0][0][1]  [0][0][0][*][*][*][*][*]  [*][*][*][*][*][*][*][*]
//                                         [ hand type]           [          five hi cards                ]
//                                                                 A  K  Q  J  T    9  8  7  6  5  4  3  2
//
//

Author:  mlatinjo [ Fri Apr 19, 2019 6:39 pm ]
Post subject:  Re: Buying Omaha Equity calculator

Hello Nefton do you have such implementation already or know where to get it?

Author:  spears [ Fri Apr 19, 2019 7:32 pm ]
Post subject:  Re: Buying Omaha Equity calculator

https://github.com/andrewprock/pokerstove

hand evaluators
http://pokersource.sourceforge.net/
https://github.com/WhatMatters/ray_eval

Author:  mlatinjo [ Sat Apr 20, 2019 1:43 pm ]
Post subject:  Re: Buying Omaha Equity calculator

thank you a lot

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/