texas hold em php script?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
idkhowtocode
Forum Newbie
Posts: 3
Joined: Tue Dec 20, 2011 10:37 pm

texas hold em php script?

Post 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 :)
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: texas hold em php script?

Post 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
idkhowtocode
Forum Newbie
Posts: 3
Joined: Tue Dec 20, 2011 10:37 pm

Re: texas hold em php script?

Post 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!
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: texas hold em php script?

Post 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....
idkhowtocode
Forum Newbie
Posts: 3
Joined: Tue Dec 20, 2011 10:37 pm

Re: texas hold em php script?

Post by idkhowtocode »

i dont mind spending money on a good source :)
User avatar
egg82
Forum Contributor
Posts: 156
Joined: Sat Oct 01, 2011 9:29 pm
Location: Colorado, USA

Re: texas hold em php script?

Post 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
Post Reply