Skip to forum
How does Equilab Ca...
 
Notifications
Clear all

How does Equilab Calculate Preflop Range vs Range Equity so fast?

2 Posts
2 Users
0 Reactions
1,879 Views
CaptnCanary
Joined: 03.08.2021

I'm writing some code to do some of my own equity calculations and I've been checking some of my results against Equilab to ensure correct output. I'm doing well with postflop equity calculations completing very fast. However, preflop, there are so many possible combinations my software takes an unreasonable amount of time to complete simulating all possible board runouts for all possible range vs range combos.
However, I've noticed that Equilab gives pretty much instant answers. Preflop results appear even faster than with a specified flop, which seems counter intuitive, especially when 'enumerate all' is selected. Does enumerate all actually calculate all possible outcomes? Or are the results precalculated somehow?

If possible, I'd really appreciate if anybody can give me any incite into how the equilab code works in this respect.
Thanks


Reply
Quote
1 reply
Super Moderator
VorpalF2F
Joined: 02.09.2010

Hi CaptnCanary,
Welcome to PokerStrategy.com :welcome:

Equilab was written some time ago, and I'm not sure if the developers are still around.

If you do a search for

poker equity calculation libary

in your favourite search engine you will find a number of tools in various languages that might give you some good ideas.

Here is one idea:
There are only 169 distinct starting hands.
If you pre-calculated all 28,561 resulting match-up then the lookup would be instantaneous.
For range vs range, you just iterate through each.

You'll notice that the larger the ranges get, the longer it takes, and the more hands are in, the longer it takes.

good luck with your project!
VS


Reply
Quote