Open Side Menu Go to the Top
Register
Android: Poker Equity Calculator Android: Poker Equity Calculator

08-28-2011 , 01:42 PM
Hi all, I have just published an application in the Android Market similar to PokerStove or PokerStrategy Equilator or Equilab.
It is called Poker Equity Calculator.
It is free, so you don't lose anything giving a try.
If you have any questions, advice or you find any bug I would love you told me here.

To the moderators: I am not very sure if I can use the forum for this, if it is a problem tell me so.
Android: Poker Equity Calculator Quote
08-28-2011 , 01:44 PM
Cool thanks ill dl it and give it a try
Android: Poker Equity Calculator Quote
08-28-2011 , 02:33 PM
Is it open source or just free?
Android: Poker Equity Calculator Quote
08-28-2011 , 05:25 PM
myNameIsInga, i'm afraid its not open source. But tell me the things you want and I will try to do it. I'm willing to improve it.
Android: Poker Equity Calculator Quote
08-28-2011 , 05:30 PM
By the way I used code from Steve Brecher when choosing the winning hand.
Android: Poker Equity Calculator Quote
08-28-2011 , 05:46 PM
Downloaded it, i like it...
Android: Poker Equity Calculator Quote
08-28-2011 , 06:31 PM
Its a very nice looking piece of software. I wasnt really looking to change anything, been thinking of doing a poker thing on android and was just curious as to what the code looked like.

Thanks for that link!
Android: Poker Equity Calculator Quote
08-29-2011 , 07:52 AM
When I try to compare two or more ranges the app crashes. It just says it has stopped unexpectedly. Works fine when comparing range vs. cards or cards vs. cards. That's on my Motorola Defy.

Also, compared to PokerStove some results are quite off. For example, top 3.3% range (AQs, 99+) vs. AcKd equals approx. 58:42 in PokerStove. In your app results are frequently around 64:36.

After you fix that, an option to increase number of simulations would be useful.

Otherwise, looks very promising for a free app.
Android: Poker Equity Calculator Quote
08-29-2011 , 09:27 AM
iwan2do: Thank you very much for the report!!!

One of them is clearly a bug: 2 ranges = crash. I will work in this and fix it ASAP.

However, the another one is a feature, the differences with pokerstove come from the following:
When you specify a hole hand for a player, its cards are eliminated from the ranges of the other players.
It is not immediately shown in the main screen, but if you enter the range selection screen again, you will see that some of the buttons have red text* meaning that the full range is not possible. Also the range percentage text will change.
For example, if you chose:
- Range of 3% for p1
- AcKd for another p2
Then if you enter the p2 Range selection screen, you will see that all Ax Kx buttons will have red text, and the percentage will shrink to 2.2%

To sum up, when choosing AcKd, the 3.3% PF range shrinks to a 2.6% range. Thus the difference with PokerStove.


*If the button has blue text it means that from the possible hands, you have not selected all of them. To select specific suits, long-press a button of the range selection screen.
Android: Poker Equity Calculator Quote
08-29-2011 , 10:17 AM
Nice one, Downloading now! Thanks a bunch
Android: Poker Equity Calculator Quote
08-29-2011 , 10:23 AM
Yeah, that's actually a cool feature, but the range shrinks only when I go to the range selection again.
So for example, when I select a 3.3% range for p1 and then AcKd for p2, I need to go to range selection for p1 again for the range to shrink to 2.6%. Otherwise, range will remain 3.3% and it will calculate wrong results. Can you make it so range shrinks immediately after AcKd for p2 is selected?
If you first put AcKd for one player and then a range for the other player, range is selected/shrinked fine.
Not really a problem for me, but it would be more convenient and could confuse some users.

Also, I've found another crash. When selecting "impossible" suits for pocket pairs. E.g., if I want to select AcAc or AcAd (there already is AdAc which is the same).

Here's another suggestion: Clear All button .

This is by far the best free poker odds app for Android, IMO.
Android: Poker Equity Calculator Quote
08-29-2011 , 10:59 AM
iwan2do: I've just solved the bug of 2 or more ranges. It's now updated to version 1.02
Android: Poker Equity Calculator Quote
08-29-2011 , 11:06 AM
iwan2do: I've just see your post. Thanks a lot! It's helping me to improve the app a lot!
Now I have some more TODOs in my list:
"fix impossible suits crash"
"range insta-shrink"
"clear all button"
Android: Poker Equity Calculator Quote
08-29-2011 , 12:37 PM
Thanks, that was fast. Works better now. Here's the buggy thing about ranges now:

If the player that is higher on the list has wider range than the player that is beneath him (e.g. BB wider range than SB, or SB wider range than BU), results will be slightly different than they should be. Differnece goes up to 5% and gets lower than 1% on some ranges. It seems to be most noticeable when comparing pocket pairs ranges.
E.g.,
KK+ on BB vs. TT+ on SB gets around 73 : 28 which is fine, but
TT+ on BB vs KK+ on SB gets around 69 : 32 which is slightly wrong.

For TT+ vs AA difference in results is 5%.
Android: Poker Equity Calculator Quote
08-29-2011 , 05:29 PM
iwan2do: It sounds very logical (though wrong) given the way I make the simulations. I have to redo the way it works with more than one of the players' hole hand selected by range. Thank you again!
I hope to be able to release the changes tomorrow.
Android: Poker Equity Calculator Quote
08-30-2011 , 03:05 PM
Hello again, I've tried to address the pending issues, and updated to 1.03 which now has:
* Added "Clear all" button on menu
* Solved bug that gave incorrect equities when using 2 or more ranges
* Ranges now automatically shrink when other player or the board have cards within that range
* Solved bug crash when pressing an impossible suit button in the range specific suit screen

BTW, I will be waiting here for any comments you have.
I hope you enjoy it!
Android: Poker Equity Calculator Quote
08-30-2011 , 04:54 PM
First, about ranges. Now, the results are slightly wrong when comparing some ranges. For example, KK+ vs TT+ shows around 70:30 instead of 72:28; AA vs TT+ shows around 77:23 instead of 80:20.

Second, it seems to calculate equity much slower with this new update. Especially when comparing wide ranges like 30% vs 10%. That one takes more than 2 mins and I think my mobile with 1GHz cpu should be able to handle it better.
I don't know if you've seen it, but I said before that maybe you should add an option to increase/decrease the number of simulations that are calculated. Would be useful to decrease the number if you want speed or to increase the number for higher accuracy of results. Although, with the performance at the moment higher number of simulations would take too much time.

That's all for now. Later on, after small issues are fixed and/or it gets more popular add a donate version with no ads. I'd buy it . (for a reasonable price of course )

Last edited by iwan2do; 08-30-2011 at 04:59 PM.
Android: Poker Equity Calculator Quote
08-30-2011 , 06:33 PM
Hi iwan2do,
First and foremost, thanks for the feedback! And now let's get to the point:

It seems that the approach I have taken is similar to PokerStrategy equilator's rather than PokerStove's.
KK+ vs TT+ is really nearer to 70:30 than to 72:28 for PokerStrategy equilator: it shows 70,690% : 29,310% in more than 500,000,000 hands.
The same for AA vs TT+, with 77,592% : 22,408%.
I think that the difference is that PokerStove makes some branch and cut work before "throwing the dices", while PokerStrategy's equilator, and Poker Equity Calculator 1.03 do not. I only shuffle a deck and deal out taken the ranges into account. But this may be too easy to be true.
I do not really know which is the correct approach as I think it depends on considering correlation between the multiple ranges or not... well... I'm not Gauss, but I will try to ask and learn. But I think the problem here is to define the problem.
I think I will try to replicate the PokerStove behavior in the future (I think it will be hard work) and give the user the choice.
Anyway this is getting pretty interesting.

By the way, you're completely right about the performance, this is too slow and I will try to improve it on every update.

And I also like the idea of giving the user a choice of performance vs. speed, probably in the menu with a slidebar or so.
Android: Poker Equity Calculator Quote
08-30-2011 , 08:32 PM
Actually, I was using PokerStrategy Equilab in my previous post and the values were 72:28 and 80:20 ("Monte Carlo").
So I went to download PokerStrategy Equilator and indeed the values on "Monte Carlo" are as you said, but on "Enumerate" they're 72:28 and 80:20. I don't know where that difference comes from, but "Enumerate" takes all possible outcomes and gives exact results so "Monte Carlo", I believe, should be very close to "Enumerate".
Android: Poker Equity Calculator Quote
08-31-2011 , 07:29 PM
Ok, so I've been looking at these results a bit so I'll write some stuff here.

Here are some results from PokerStrategy Equilator (which presumably works the same as your app). First one is on enumerate and second one on monte carlo:

Operation completed... 256.845.600 games processed in 0 seconds.

Equity Win Tie Loss Hand
Player 1: 80,094% 77,979% 4,230% 17,792% AA
Player 2: 19,906% 17,792% 4,230% 77,979% TT+
----------------------------------------
Operation canceled... 337.325.909 games processed in 02:00 minutes.

Equity Win Tie Loss Hand
Player 1: 77,591% 71,668% 11,846% 16,486% AA
Player 2: 22,409% 16,486% 11,846% 71,668% TT+


Now when we have ranges that do not include the same cards, the results are the same for enumerate and monte carlo.

Operation completed... 246.571.776 games processed in 0 seconds.

Equity Win Tie Loss Hand
Player 1: 81,348% 81,137% 0,420% 18,442% AA
Player 2: 18,652% 18,442% 0,420% 81,137% KK-TT
----------------------------------------
Operation canceled... 254.700.828 games processed in 01:25 minutes.

Equity Win Tie Loss Hand
Player 1: 81,349% 81,138% 0,421% 18,441% AA
Player 2: 18,651% 18,441% 0,421% 81,138% KK-TT


The monte carlo results seem to be the same as in your app.

So my guess is it has something to do with tie calculation. Maybe while doing simulations it takes same cards for both players and counts it as a tie (AcAd vs AcAd). Win percentages drop down as much as tie percentage goes up so I guess it's adding too much ties somewhere.
Android: Poker Equity Calculator Quote
09-01-2011 , 07:58 AM
What PokerStove approach says is that all the possible configurations are equally probable.

What Equilator and PEC 1.03 approaches say is that hands in the range of each player are equally probable.

These two things are not the same when the ranges overlap, and I think PokerStove approach is the right one.
In that case is very clear, the 2nd player shouldn't have the same probability of having AA due to the 1st player having AA FOR SURE.


So I'm currently adopting the PokerStove behaviour and it will probably be the chosen one from 1.04 on.

Again, lots of thanks!!!

Last edited by mamuso; 09-01-2011 at 08:21 AM.
Android: Poker Equity Calculator Quote
09-01-2011 , 12:02 PM
Hi, I've updated again. I hope it works better now!
Poker Equity Calculator 1.04 has:
* Newer and more accurate calculations on multiple ranges (this is what we've been talking here)
* Faster calculations on multiple ranges (a consequence :P)
* Changed clear button behaviour on range selection screen
* Go/pause button only enabled when useful
Android: Poker Equity Calculator Quote
09-01-2011 , 01:27 PM
Thank you, too. I took a short look at the new update and now it seems to be very accurate and works fast.
Android: Poker Equity Calculator Quote
09-01-2011 , 07:31 PM
Do you have any plans in particular for now? I was thinking if you could implement text input of cards/ranges so you could just write down something like QTs+, KK-TT or AcKd? Maybe make it by tap holding Range/Cards/Flop/Turn/River buttons or by putting a text input line and shrinking buttons.

Also, I have found another minor bug. When I enter cards selection and turn my phone into landscape position PEC takes me back to player list. Same with range selection. Moreover, after doing it with range selection all pictures for card selection (including flop, turn, river) disappear. I had to kill the app for pictures to appear again.

Last edited by iwan2do; 09-01-2011 at 07:54 PM.
Android: Poker Equity Calculator Quote
09-02-2011 , 03:24 AM
Can you make the screen showing ranges that we input?
Like,if we input 66+,AK+,so we can c this on calculation screen
Android: Poker Equity Calculator Quote

      
m