Page 1 of 1

texas hold em php script?

Posted: Tue Dec 20, 2011 10:41 pm
by idkhowtocode
im trying to find a decent php multi player texas hold em script i can modify to my likings. if anyone knows where i can find a good one i surely would appreciate it. thanks and have a great day :)

Re: texas hold em php script?

Posted: Wed Dec 21, 2011 9:05 am
by Eric!
Are you looking for PHP source? There are several JAVA and C examples out there. Converting it to multiplayer will depend on how you want to handle the multiple sessions on your server, so it's probably best you work from scratch anyway.

Here are some PHP classes that might help you out phpclasses.org poker classes

Re: texas hold em php script?

Posted: Wed Dec 21, 2011 3:34 pm
by idkhowtocode
thank you for your quick reply. my intent is to find an open source php script that is complete, and just modify to my likings. i will not be doing any of the coding as i dont know how. i have a web developer who i met with and he said the best thing to do is find an open source php script and he can modify it any way we choose. he said it will save me thousands of dollars. ive found a few but they are alll from another country other than the united states. im hoping to find what im searching for soon. i have some great ideas for what im wanting to do with it :) so if you know of any trusted sites you could point me towards that would be great! thanks for your time, have a wonderful day!

Re: texas hold em php script?

Posted: Wed Dec 21, 2011 3:49 pm
by Eric!
You need more than just a script to manage real-time multi-player games on a server. I really doubt you'll find something like that for servers on the internet for free. It's pretty specialized and complex. If you can't build it from the classes and your own code you'll probably have to break out the bucks....

Re: texas hold em php script?

Posted: Wed Dec 21, 2011 7:25 pm
by idkhowtocode
i dont mind spending money on a good source :)

Re: texas hold em php script?

Posted: Wed Dec 21, 2011 7:30 pm
by egg82
this is just me analyzing it and creating a simple layout, but take it as you will:

I personally would do this in flash AS2. Why? Because flash is quick, handles asynchronous queries with ease,
and it's one of the few languages I know well enough to call myself an "expert" in. (though of course, nobody is a true expert)

PHP - Initializes the table. Creates card deck(s), etc. and handles security
Flash - All GUI and interactivity
"text" document - mini MySQL database. Instead of creating and using an entire DB, use a small deletable file.

Everything has a logical order. Think about texas holdem's. (I will be using blackjack as an example, as it's simple)

1. Player logs in
2. Player sits down
3. Player waits x amount of time for game to start (or start game if table is full)
4. 'Round the table
5. Check table hands for busts and act accordingly
6. Grab user input (hit or stay)
7. Back to 2 and repeat until all stay or all bust
8. Act accordingly (add/subtract tokens from players)
8. Back to 3