Calculator in PHP

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
lemonpiesaregood
Forum Newbie
Posts: 3
Joined: Mon Mar 07, 2005 4:23 pm

Calculator in PHP

Post 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,
Last edited by lemonpiesaregood on Fri Jun 12, 2009 7:08 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Visual Basic and speed? :lol:

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.
Cronikeys
Forum Commoner
Posts: 35
Joined: Sun Jan 16, 2005 9:14 am

Post 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 :(
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post 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(). :wink:
Post Reply