DaveN posted on Jul 17 2006 at 06:21 PM said:So, since there are already 4 threads asking about a poker game and because I'm also into poker, I decided to give it a go. It's my first real game coding attempt in C++, I already coded in some Basic languages, a little Jave, Flash and some scripting engines for game engines. I'm pretty surprised since all the guys are talking about c++ like it's a fucking hard language to do, but it isn't to different compared with other languages and not too hard to learn.
Anyway, at the moment you're able to play a round of poker ( against yourself ) in a text-terminal. I'm debugging it now, and also I'm rewriting some parts of the code to make it more re-usable.
The most important things that are on the to-do list are an a.i. and a gui. The latter one isn't too hard, it's the a.i. that is hard to code. I'm really into coding a.i.'s, but I'm not too awesome at poker and poker a.i.'s are pretty hard to do. So I'm asking about some input on this topic. I've wrote a small document containing some thougts and all the things that should be viewed by the a.i. before it's betting or folding, but I'm sure there are some thigns left. I'd be really happy if some poker players here could give me some advice in that. Like some links about the topic or even a list with ratings of the possible starting hands. Something like this would be really helpful:
Ass + Ten of same kind -> Should raise in 68% of the games.
Ass + Ten of different kind -> Should raise in 40% of the games.
And also, if you've got some advices on how the menu, the in-game menu etc. should look, please post them. Or if you're just happy that someone's finally doing that,
Oh, and for a beta-data; I haven't got any idea by now. It could be in three days or in five weeks.
Cheers, David
evening2005 posted on Jul 17 2006 at 08:15 PM said:Darse Billings leads a group which is working on Poker at the University of Alberta: Poker at Alberta. I don't know anything about their work, but there should be something useful there.
I've been working on a 5-card draw "video poker" game, but that is like those slot-machine things and it doesn't have any AI at all. You're welcome to the code if you want it. It might be useful for displaying cards etc.
Dude, it's ryleh!!!!!!! Hey dude hows your work on fday going? :huh:rlyeh posted on Jul 17 2006 at 01:16 PM said:if you need to photo a dirty top model for your game, just drop me a mail ;-)
YesQuiest posted on Jul 17 2006 at 11:02 PM said:Woah nice Texas Hold`em? I hope
PS: One question, I'm using srand(SDL_GetTicks()); to get a new random value everytime. Does the GP2X also support the ctime library? I'm not sure about that since the gp2x hasn't got a built-in clock. I'd prefer to use 'time' to get completly random values all the times. With SDL_GetTicks() there could be the same values.
I know it's a small chance that this happens, but I'd prefer it to put this chance down to zero.
Now there are the rules of our poker round, that's tournament style with no limit and 5 players.dsd28 posted on Jul 18 2006 at 10:15 PM said:Cool! I'd love to play holdem on my gp2x! How will the game mechanics work (eg. tournament style/rebuys, # of AI players, blinds/anti, limit/no limit, etc.)?
Magnulus posted on Jul 19 2006 at 12:00 AM said:On another note, are the tilemaps saved in an easily exchanged manner? Would it be easy for you to incorporate custom decks? That'd be rockin'.
DaveN posted on Jul 18 2006 at 07:08 PM said:Magnulus posted on Jul 19 2006 at 12:00 AM said:On another note, are the tilemaps saved in an easily exchanged manner? Would it be easy for you to incorporate custom decks? That'd be rockin'.
They will be .png or .gif files stored in a folder in the same directory as the .gpe file. So they will be easily exchangeable. A in-game deck-chooser wouldn't be too hard, it would just have to browse the directory, find the files, list them, and then change one line in the image loading code to load the selected one.
I've got no idea how file browsing on the gp2x works from inside an application, but that isn't the first priority as well. Until this will be implented, you'll have to replace the file with your custom deck. That isn't too hard either.
By the way, I've devided to change the default rules to a limit 10/20 table. My favourite one to play, and also a popular one in online poker. I'm also thinking about adding more players, what do you all think about that?
dsd28 posted on Jul 19 2006 at 02:39 AM said:I like no limit better (if that is what you meant by "change the default rules to a limit 10/20 table" - I'm a noob at online poker). Maybe you could make it selectable?
Hmm.. Maybe as a subtitle. Or as the title. I'll think about it.hitbyambulance posted on Jul 19 2006 at 09:33 AM said:i believe that should be the title (or subtitle) of your game. "Saturday Evening Men's Round Poker"
DaveN posted on Jul 18 2006 at 10:23 PM said:Now there are the rules of our poker round, that's tournament style with no limit and 5 players.