Coder Social home page Coder Social logo

--Iterations dont work about poker-odds HOT 4 OPEN

cookpete avatar cookpete commented on May 26, 2024
--Iterations dont work

from poker-odds.

Comments (4)

cookpete avatar cookpete commented on May 26, 2024 2

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.

from poker-odds.

paulwalczewski avatar paulwalczewski commented on May 26, 2024 1

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.

from poker-odds.

cookpete avatar cookpete commented on May 26, 2024

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

from poker-odds.

paulwalczewski avatar paulwalczewski commented on May 26, 2024

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!

from poker-odds.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.