Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--Iterations dont work #1

Open
Doaxan opened this issue Apr 7, 2018 · 4 comments
Open

--Iterations dont work #1

Doaxan opened this issue Apr 7, 2018 · 4 comments

Comments

@Doaxan
Copy link

Doaxan commented Apr 7, 2018

./node_modules/.bin/poker-odds AsTh .... --board AhKdJc --iterations 99999

  board
  Ah Kd Jc

  hand      win     tie
  As Th   83.3%    5.8%
  .. ..   10.8%    5.8%

  1081 iterations in 43ms

1081 iterations always

@paulwalczewski
Copy link

paulwalczewski commented Jul 31, 2018

Hi @Doaxan
Iterations seem to be limited by number of cards to be dealed:

For 3 cards (flop board) 1081 iterations will be performed,
For 4 (turn) - 46 interations
For 5 (river) - 1 iteration (always 100% or 0%..)

That doesn't seem to be affected by number of players at all.
So, if we have X people playing and we are on the river or turn (with unknown cards .... .... .... ).
it won't do proper simulations, hence it will give you wrong win/tie odds.

@cookpete, shouldn't it rather calculate against all possible players holdings, limited to "--Iterations" param?
Thanks.

@cookpete
Copy link
Owner

cookpete commented Aug 1, 2018

Hey @paulwalczewski and @Doaxan,

Yeah I must admit that the "unknown cards" feature was shoehorned in to the library after I had written most of it. It will perform the same number of iterations as if the cards are known, and just pick random cards for each iteration.

Fixing this properly (ie iterating through every possible hand) will require a big refactor of the logic. It's definitely possible, and I can look into it when I get some spare time.

@cookpete
Copy link
Owner

cookpete commented Aug 7, 2018

It's worth noting that in it's current state, poker-odds is still not far off the results from http://www.propokertools.com/simulations.

image

image

@paulwalczewski
Copy link

Hi @cookpete.

Yes, with flop stage it gives more or less acceptable results (gets bit worse with more players, couple % differences usually between simulations). But it gets pretty useless on turn or river :(

Whenever you get that spare time to look into it I would be really appreciated!
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants