Image Image Image




Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: SNGEGT: Java port of ICM and Nash Calculators
PostPosted: Mon Apr 27, 2009 8:41 am 
Offline
New member
User avatar

Posts: 1
Favourite Bot: openholdem
Hi all,

First of all, thank you for the java port, this is great stuff.

I have a question about
Code:
int[] myHand

From my tests, I found that myHand should be an array of size 2, for the player's first and second card. However, what should the range of each value be and how does that correspond to a hold'em card?

I've tried
Code:
myHand = {0, 0}
all the way to
Code:
myHand = {1000, 1000}
and all combinations myHand = {x, y} with x >= 0 and y >= 0 seem to be valid for EV calculations.

Any idea?

EDIT: This is for using the function
Code:
public double calcPush(int players, int[] myHand, int myIndex, double[][] playerData, double[] ICMs, int ICMc)


EDIT: Actually I have made some progress. There is a variable myHandIndex which I have determined to range from 0-168, where 0 = AA and 168 = 22. There is a function in the file ICM2.java called handIndexToHand which can convert myHandIndex to a myHand array. So I guess I'll stick with that function for now.


Top
 Profile E-mail  
 
 Post subject: Re: SNGEGT: Java port of ICM and Nash Calculators
PostPosted: Wed May 27, 2009 9:45 pm 
Offline
Senior member
User avatar

Posts: 232
Favourite Bot: Poki
Hey guys, I have a problem building CalcRanges.java

CalcRanges.java:27: cannot find symbol
symbol : class ICM2
location: class pokerai.game.icm.CalcRanges
private ICM2 icm;

I have the ICM2.class in the same folder, what am I doing wrong? :P


Top
 Profile E-mail  
 
 Post subject: Re: SNGEGT: Java port of ICM and Nash Calculators
PostPosted: Sun Jan 31, 2010 4:35 am 
Offline
New member
User avatar

Posts: 4
Favourite Bot: self-made
Hi, i have a short question about the variable
Code:
iThreshold


is this number something like an edge?


Top
 Profile E-mail  
 
 Post subject: Re: SNGEGT: Java port of ICM and Nash Calculators
PostPosted: Sat Apr 10, 2010 1:57 pm 
Offline
New member
User avatar

Posts: 4
Favourite Bot: dont know
I have compared SNGEGT to SNG Wizard (v1.01.221), and got not even slightly different results, for example in your 1. example

(a) if SB calls 7% and BB calls 7%, then we push 41.5% and not 27% (very different!)
(b) wizard-optimality (average / empirical): BU push 55.5%, SB call 5.8%, BB call 7.2%
(c) I enter in SNGEGT the calling ranges for SB and BB from Wizard, and get (almost) the same pushing range (which in someway contradicts to the big difference of 15% in (a)).

I wondered, why Wizard acts like that and found on FAQ on Wizards page

Quote:
Question: Why are the Wizard’s results different from other ICM programs?
Answer 1. The Wizard accounts for possible overcalls. Other ICM programs assume that once one opponent calls your push everybody else will fold.


But: If I get overcalled and I am pushing AQs, then I am almost surey dominated, so with the overcall option, my pushing range should be even smaller then 27%, but wizard suggests 41.5%!!!

Strange behavior.


Top
 Profile E-mail  
 
 Post subject: Re: SNGEGT: Java port of ICM and Nash Calculators
PostPosted: Tue Apr 20, 2010 6:58 pm 
Offline
PokerAI fellow
User avatar

Posts: 1673
Favourite Bot: none
AFAIK Wizard doesnt calculate optimal ranges but assumes some set ranges for spots. I am not saying SNGEGT is right but that could be it here.

_________________
Cheers.


Top
 Profile  
 
 Post subject: Re: SNGEGT: Java port of ICM and Nash Calculators
PostPosted: Sun Aug 22, 2010 2:11 am 
Offline
New member
User avatar

Posts: 2
Favourite Bot: unknown
hey hey!

Great that you ported it to java, I want use it and have a question.

If I face a First-In push situation I want to calculate EV Push and EV Fold. So what about the calling ranges of the ones to come? Do I have to tell ICM2 this?
There is a double array "playerDataPush". The first value is the stack, then blind? and then? Is this a calling Range which I have to define myself for each player? And can I extract this calling ranges? In the GUI there are shown in this slider..

And what is double [][] iStacks2?

Thx for teh help :)


Top
 Profile E-mail  
 
 Post subject: Re: SNGEGT: Java port of ICM and Nash Calculators
PostPosted: Sun Aug 22, 2010 2:29 am 
Offline
PokerAI fellow
User avatar

Posts: 1673
Favourite Bot: none
There is pretty much no support for this here. Go look at the test class, go look at the methods available and go look at the code to figure out what it does. Then you can probably answer the question yourself.

This is not a support forum which means we are not here to explain the basics. You are going to have to step up to the plate yourself and contribute, to get something back from this community.

_________________
Cheers.


Top
 Profile  
 
 Post subject: Re: SNGEGT: Java port of ICM and Nash Calculators
PostPosted: Sun Aug 22, 2010 2:51 am 
Offline
New member
User avatar

Posts: 2
Favourite Bot: unknown
Ok sorry, here in this topic were some questions about basics, so I thought I could give it a try.
And I already looked deep in the methods but I cant explain what the third index of
"double [][] playerDataPush = { {6000, 600, 40,0,0,0,0,0}...." is (I mean the 40 value). Somewhere it is referenced as "CALLRANGE" but when I want to compute a situation I don't know calling ranges of my opponents.

But tomorrow I will try again and look deep :)

Good night


Top
 Profile E-mail  
 
 Post subject: C# Port of the Java port of ICM and Nash Calculators
PostPosted: Sun Sep 05, 2010 2:29 pm 
Offline
Junior member
User avatar

Posts: 15
Favourite Bot: none jet
I created a C# port of Indiana's Java port of SNGEGT...
I didn't really change anything just changed the small differences in the syntax...
Perphaps it is usefull for somebody...


Attachments:
NashTest.zip [533.27 KB]
Downloaded 116 times
Top
 Profile E-mail  
 
 Post subject: Re: C# Port of the Java port of ICM and Nash Calculators
PostPosted: Sun Sep 05, 2010 10:13 pm 
Offline
Senior member
User avatar

Posts: 360
Favourite Bot: Zander
weining wrote:
I created a C# port of Indiana's Java port of SNGEGT...
Ermmm, wasn't the Java version ported FROM C# in the first place?? http://code.google.com/p/sngegt/

_________________
http://www.bespokebots.com


Top
 Profile  
 
 Post subject: Re: SNGEGT: Java port of ICM and Nash Calculators
PostPosted: Tue Sep 07, 2010 2:21 pm 
Offline
Junior member
User avatar

Posts: 15
Favourite Bot: none jet
Oups... didn't know that^^...
the nash calculation done by sngtegt aren't exact anyway... doesn't consider overcalls and if I got it right the foldEv is calculated wrong, because it doesn't consider the possibility of other players eliminating each other when the player folds.


Top
 Profile E-mail  
 
 Post subject: Re: SNGEGT: Java port of ICM and Nash Calculators
PostPosted: Tue Nov 02, 2010 8:54 pm 
Offline
New member
User avatar

Posts: 4
Favourite Bot: openholdem
Has anyone ported it to C?


Top
 Profile E-mail  
 
 Post subject: Re: SNGEGT: Java port of ICM and Nash Calculators
PostPosted: Wed May 04, 2011 11:47 pm 
Offline
Junior member
User avatar

Posts: 31
Favourite Bot: none
Does anybody still use this code?
If yes, in line 594 at the ICM2.java is an error:
It should be
Code:
betSum = calcStackBeforePush(myIndex, oppIndex, stacks, playerData, betSum);

like in the other lines where this function is used.

Is there an other solution for ICM calculations in Java?

And an other question: Are this calculations be also usefull for HU decisions? I think they should be, but I am not sure.


Top
 Profile E-mail  
 
 Post subject: Re: SNGEGT: Java port of ICM and Nash Calculators
PostPosted: Tue May 10, 2011 3:35 pm 
Offline
Regular member
User avatar

Posts: 50
Favourite Bot: none
I will use this code and i trieded to implement it in my Bot.

But i must look deeper in the Code.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2


Who is online

Users browsing this forum: No registered users and 2 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:
Jump to: