We are developing poker application in PHP, where we need to calculate poker hand equities. Something like there:

http://www.codingthewheel.com/archives/multiway-ranged-isometric-equity-calculation-in-poker-1

Question - isn't there a more simple way without using those enumerate or monte carlo methods?

If there is not, then is there some PHP script for that? In the link I gave its C++ and other languages but not PHP.

Shouldn't be extremely hard to convert that to PHP (had just a quick glance though), the differences are relatively small. An enumeration is just for readability, it's basically just an int.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.