Page 1 of 1
Calculator in PHP
Posted: Mon Mar 14, 2005 8:19 am
by lemonpiesaregood
Do you think a PHP script would be able to process every single texas holdem scenario to determine the odds of winning a hand if the user enters their hand and the flop in less than 5 seconds? Or would it be more logical to create it in C++ or Visual Basic for speed?
Thanks,
Posted: Mon Mar 14, 2005 8:24 am
by feyd
Visual Basic and speed?
I don't remember the permutations at that point for the probability, but unless it's in the higher tens of thousands, or millions (depending on the computer it's being run on), I don't see why not.
C would very likely be faster though.
Moved to Theory.
Posted: Sun Mar 27, 2005 11:56 am
by Cronikeys
To answer your question, no.
PHP will collapse into itself if you are running it on any server you don't manage
I once tried to make a program to see how secure your password was using PHP and MD5, but once it got up in the 1000000's it timed out

Posted: Tue Apr 05, 2005 7:54 am
by BDKR
Cronikeys wrote:To answer your question, no.
PHP will collapse into itself if you are running it on any server you don't manage
I once tried to make a program to see how secure your password was using PHP and MD5, but once it got up in the 1000000's it timed out

That's why you use set_time_limit().
