I am creating a poker game.
Things I made so far:
Graphics:
- Title screen
- Character faces
- Play board
System:
- A deck with 52 cards, that gets reset and shuffled every hand.
- Dealing. (Put a card in each player's hand, the flop, river and turn)
- Checking which hand is the winner (I made a plugin for this.)
I have everything I need, but I am stuck on creating a betting algorithm. I might need an algorithm that checks what the win chances are based on which cards the AI has, and how many cards are still in the deck and how many players are in this hand. Based on that percentage, I could make the AI raise, call, check or fold. Another thing I also need to create is a dealer button, small blind bets and big blind bets. But I see this as part of the betting system I still am struggling with.
Finally I need an interface: Showing stacks, cards and bets near the players portraits, showing the flop, turn and river, and the pot, in the center of the table. Now, it all runs just in the background without visuals.
The game technically so far just:
- Creates a new deck and shuffles it
- Deals cards
- Declares a winner
Next steps:
First I will create a betting system, where AI will basically pick check, raise, fold or call randomly. That part is to set up turns, having the betting round stop once every player has checked or called. (So far I have skipped this to break my brains over the next step)
Next I need to make the AI take smart decisions. This is so freaking hard, I am so freaking stuck on this part.
IMAGES!!
Images are made by creating many templates with AI, combine the best features of each template and then redraw the whole thing myself. So, yes... AI helped me greatly with the design, specially the design of the mohawk character, since that is based on myself.
I thought it was smart to create graphics that way. It works with code: I have AI show me how it is done, and then I do it myself. But I hated it! I love the result, though. I wonder if all pixel artists work like I do, like zoom in at 800% or 1600%. Even with the minimap, things don't make sense at 1600% to me... Normally when I do, I zoom in for details, sure, but every pixel in the wrong place looks fine at 1600%, and weird at 100%, or the other way around. I don't think I'll do this again. 😛 Learned a lot about pixel art and shading, though...
PLUGIN!!
The plugin I wrote is a complicated algorithm that works as followed:
- Each card in the game is stored in a variable.
- The plugins knows which variables means what (Is it a card in a players hand, or part of the flop, turn or river?)
- The plugin checks the best 5 cards out of the 7 available per player
- The plugin checks which player has the best hand
This is only the second most challenging thing I had to face when making this game, but I nailed it! (With some help debugging, by AI...)
Now I have to add another algorithm to see which action the current AI player should take. That is so hard, that is where I am completely stuck.
Things I made so far:
Graphics:
- Title screen
- Character faces
- Play board
System:
- A deck with 52 cards, that gets reset and shuffled every hand.
- Dealing. (Put a card in each player's hand, the flop, river and turn)
- Checking which hand is the winner (I made a plugin for this.)
I have everything I need, but I am stuck on creating a betting algorithm. I might need an algorithm that checks what the win chances are based on which cards the AI has, and how many cards are still in the deck and how many players are in this hand. Based on that percentage, I could make the AI raise, call, check or fold. Another thing I also need to create is a dealer button, small blind bets and big blind bets. But I see this as part of the betting system I still am struggling with.
Finally I need an interface: Showing stacks, cards and bets near the players portraits, showing the flop, turn and river, and the pot, in the center of the table. Now, it all runs just in the background without visuals.
The game technically so far just:
- Creates a new deck and shuffles it
- Deals cards
- Declares a winner
Next steps:
First I will create a betting system, where AI will basically pick check, raise, fold or call randomly. That part is to set up turns, having the betting round stop once every player has checked or called. (So far I have skipped this to break my brains over the next step)
Next I need to make the AI take smart decisions. This is so freaking hard, I am so freaking stuck on this part.
IMAGES!!
Images are made by creating many templates with AI, combine the best features of each template and then redraw the whole thing myself. So, yes... AI helped me greatly with the design, specially the design of the mohawk character, since that is based on myself.
I thought it was smart to create graphics that way. It works with code: I have AI show me how it is done, and then I do it myself. But I hated it! I love the result, though. I wonder if all pixel artists work like I do, like zoom in at 800% or 1600%. Even with the minimap, things don't make sense at 1600% to me... Normally when I do, I zoom in for details, sure, but every pixel in the wrong place looks fine at 1600%, and weird at 100%, or the other way around. I don't think I'll do this again. 😛 Learned a lot about pixel art and shading, though...
PLUGIN!!
The plugin I wrote is a complicated algorithm that works as followed:
- Each card in the game is stored in a variable.
- The plugins knows which variables means what (Is it a card in a players hand, or part of the flop, turn or river?)
- The plugin checks the best 5 cards out of the 7 available per player
- The plugin checks which player has the best hand
This is only the second most challenging thing I had to face when making this game, but I nailed it! (With some help debugging, by AI...)
Now I have to add another algorithm to see which action the current AI player should take. That is so hard, that is where I am completely stuck.