Jump to content
MakeWebGames

Texas Hold 'Em Mod


seanybob

Recommended Posts

For a demo, check out

http://galacticcrusade.com (click explore -> texas hold 'em)

user-test

pass-test

(NOT FULLY COMPLETED YET)

Currently, I just finished the scoring system. It has taken me about a week to get the scoring system setup, getting rid of all the bugs.

Now, I have a few options about where to take this.

1)I can set it up so users can play each other, meeting up in different rooms, with the board being updated every 20 seconds or so (or could set up some ajax for it)

2)I can set it up so individual players play the computer

It would follow all the rules of a standard texas hold em game.

Prices?

For the finished product, the price for scenario 2 (player v. comp) would be around 75 bucks, while scenario 1 (player v. player) would be around $125

Think prices are unreasonable?

I encourage you to try coding it yourself.

This project has taken up about 1300 lines of code so far, with another several hundred to go. My code is as efficient as I can make it, while still ensuring no bugs can be abused and maintaining neatness of coding (such as indenting, etc).

I'm posting this mod before it's finished on CE in order to get input on what direction you think I should take this mod, as well as inviting people to poke around and try to find bugs if they wish.

God bless,

Seanybob

Link to comment
Share on other sites

Re: Texas Hold 'Em Mod

I am definately interested in this mod as I know it is a big undertaking to program. I would even consider paying those prices.

One thing I dont like about the test version is that the game goes so quick. There is no betting after each card or whatnot, the hole game finishes in a matter of a second. But this is a complex game so I dont know how one would do the AI involved in determining what the computer may bet or not bet against a player.

I definately think player-v-player might be the best route as then you dont have to worry about AI. I think, however, you would need to give each player enough time to respond and would have to have stated rules if the person does not respond in said amount of time. Having perhaps 4 people on a table would be awesome.

To be honest, I almost think player-v-player is worth more than player-v-computer. Especially the way it is now. Unless you're going to program card-by-card computer AI, it's no more than a random game of chance. Definately need to find a way to make it a skill based game, at least so much as you can with a card game.

This looks funny:

Computer's best hand:

Pair of 14

Link to comment
Share on other sites

Re: Texas Hold 'Em Mod

 

I am definately interested in this mod as I know it is a big undertaking to program. I would even consider paying those prices.

One thing I dont like about the test version is that the game goes so quick. There is no betting after each card or whatnot, the hole game finishes in a matter of a second. But this is a complex game so I dont know how one would do the AI involved in determining what the computer may bet or not bet against a player.

I definately think player-v-player might be the best route as then you dont have to worry about AI. I think, however, you would need to give each player enough time to respond and would have to have stated rules if the person does not respond in said amount of time. Having perhaps 4 people on a table would be awesome.

To be honest, I almost think player-v-player is worth more than player-v-computer. Especially the way it is now. Unless you're going to program card-by-card computer AI, it's no more than a random game of chance. Definately need to find a way to make it a skill based game, at least so much as you can with a card game.

This looks funny:

Computer's best hand:

Pair of 14

The test version is mainly just showing that the scoring method is working right now.

I decided to go ahead and make both versions. The player vs. computer one will probably take a lil bit longer (as you said, I have to program the AI controls so it is a game of skill rather than change).

My immediate project will be the player vs. player.

There will be the betting rounds before the flop, after the flop, after the turn, and after the river. There will be multiple tables set up, with different stats for each table (as a user defines). Players at a table (currently max of 7, number can be changed though) play the game, each has a max of 30 seconds for their turn (although the user can change this setting when creating a table). If they don't do something within those 30 seconds, they fold.

When logged in, go to this page

http://www.seanybob.net/rc/playpoker.php

you will see a bit more about how the layout will be (I'll be cleaning that up tho, that's just for testing)

To check out the area where you create rooms and such, go here while logged in

http://www.seanybob.net/rc/pokerroom.php

I'm moving some stuff around, and adding more and more safeguards, but it's coming together :)

Link to comment
Share on other sites

Re: Texas Hold 'Em Mod

 

For a demo, check out

http://galacticcrusade.com (click explore -> texas hold 'em)

user-test

pass-test

(NOT FULLY COMPLETED YET)

Currently, I just finished the scoring system. It has taken me about a week to get the scoring system setup, getting rid of all the bugs.

Now, I have a few options about where to take this.

1)I can set it up so users can play each other, meeting up in different rooms, with the board being updated every 20 seconds or so (or could set up some ajax for it)

2)I can set it up so individual players play the computer

It would follow all the rules of a standard texas hold em game.

Prices?

For the finished product, the price for scenario 2 (player v. comp) would be around 75 bucks, while scenario 1 (player v. player) would be around $125

Think prices are unreasonable?

I encourage you to try coding it yourself.

This project has taken up about 1300 lines of code so far, with another several hundred to go. My code is as efficient as I can make it, while still ensuring no bugs can be abused and maintaining neatness of coding (such as indenting, etc).

I'm posting this mod before it's finished on CE in order to get input on what direction you think I should take this mod, as well as inviting people to poke around and try to find bugs if they wish.

God bless,

Seanybob

Very very very nice.. I may even consider purchasing this.. It could be a long thing to code.. plus all the aspect and potential this has..

You need to explain it more.. Does it blend with PHP 5 functions? How many tables does it use up? What mccode version is it for? How long is a poker room open for?

Link to comment
Share on other sites

Re: Texas Hold 'Em Mod

 

Very very very nice.. I may even consider purchasing this.. It could be a long thing to code.. plus all the aspect and potential this has..

You need to explain it more.. Does it blend with PHP 5 functions? How many tables does it use up? What mccode version is it for? How long is a poker room open for?

1) Could you rephrase the question? A bit confused as to what you're asking...

2) Currently it is using 4 tables in the DB. I could easily narrow it down to 2-3, however I'll be doing some more testing on it, see what takes up less resources.

3) Coding it in v2. Easily converted to v1.

4) That's the portion I'm coding right now... open to ideas. I'm thinking keeping the poker rooms open as long as there is someone in the room, but having a cron running (or perhaps a timestamp comparison) that deletes rooms that haven't had any activity in the past hour or so. I could make that customizable if you wish.

Link to comment
Share on other sites

Re: Texas Hold 'Em Mod

 

Very very very nice.. I may even consider purchasing this.. It could be a long thing to code.. plus all the aspect and potential this has..

You need to explain it more.. Does it blend with PHP 5 functions? How many tables does it use up? What mccode version is it for? How long is a poker room open for?

1) Could you rephrase the question? A bit confused as to what you're asking...

2) Currently it is using 4 tables in the DB. I could easily narrow it down to 2-3, however I'll be doing some more testing on it, see what takes up less resources.

3) Coding it in v2. Easily converted to v1.

4) That's the portion I'm coding right now... open to ideas. I'm thinking keeping the poker rooms open as long as there is someone in the room, but having a cron running (or perhaps a timestamp comparison) that deletes rooms that haven't had any activity in the past hour or so. I could make that customizable if you wish.

Ooh.. How about if the room has 1 person online and hes offline

 

$time = time();
$laston = $r['laston']; //When I was last online XD
if($laston > time()-15*65) {
echo "I'm online !";
} else { echo "I'm NOT online !"; }

 

..Timestamp is the easy way.. but then again it could help in some ways.. As timestamp is a server time and server times are always different (dependant on who you host with) UK, Canadian, Austrailian, US servers etc.

Link to comment
Share on other sites

Re: Texas Hold 'Em Mod

 

i been working on a php/ajax powered texas holdem script since july.....only got the core junk done

Texas hold em is generally a hard mod to code, Especially with all the details required. I think seanybob has reasonably priced it and would make a game fly up in attraction in no time. :wink:

Link to comment
Share on other sites

  • 2 weeks later...

Re: Texas Hold 'Em Mod

 

Looking for an update on this mod...

Thanks in advance..

still coming along. I've finished most of the gameplay, have a few touchups, then gonna spend a day or two optimizing everything as best I can.

I'd say (rough idea) 2 more weeks till release.

Yes, it's taken quite awhile... but once you see this mod in it's completed form, you'll see why it took so long :D

Link to comment
Share on other sites

  • 2 months later...
  • 2 months later...

Re: Texas Hold 'Em Mod

Thanks for replying up there oxi ;)

Adverbux does have me swamped. I do plan on eventionally finishing this mod, as it is about 70-80% done, but I'm not sure if I'd release it to the public. There will be occassional bugs, and many people will have trouble following the directions to install it, etc, etc. If I did release it, it would be without support (at least not much).

But anyway...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...