Poker-AI.org

Poker AI and Botting Discussion Forum
It is currently Mon Nov 13, 2023 3:35 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Apr 17, 2019 3:57 pm 
Offline
New Member

Joined: Tue Jul 19, 2016 12:59 pm
Posts: 4
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.


Top
 Profile  
 
PostPosted: Thu Apr 18, 2019 12:11 am 
Offline
Senior Member

Joined: Fri Nov 25, 2016 10:42 pm
Posts: 122
I need it also for c# :)
Do you have some code in c# for representing hands in omaha?


Top
 Profile  
 
PostPosted: Fri Apr 19, 2019 12:35 pm 
Offline
Senior Member
User avatar

Joined: Sun Mar 10, 2013 10:31 am
Posts: 139
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
//
//


Top
 Profile  
 
PostPosted: Fri Apr 19, 2019 6:39 pm 
Offline
Senior Member

Joined: Fri Nov 25, 2016 10:42 pm
Posts: 122
Hello Nefton do you have such implementation already or know where to get it?


Top
 Profile  
 
PostPosted: Fri Apr 19, 2019 7:32 pm 
Offline
Site Admin
User avatar

Joined: Sun Feb 24, 2013 9:39 pm
Posts: 642
https://github.com/andrewprock/pokerstove

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


Top
 Profile  
 
PostPosted: Sat Apr 20, 2019 1:43 pm 
Offline
Senior Member

Joined: Fri Nov 25, 2016 10:42 pm
Posts: 122
thank you a lot


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group