Hey guys, thought I'd show you something I've been working on for a bit. May not seem like it, but it was a pretty big project. It's Poker in TM. It is a fully functional game with an intelligible AI to go up against. Here's a video of me playing/poorly explaining it:
I did a pretty poor job explaining stuff in the video, so here's a few
more details. In the video, the red notifications are for me to locate if there is any problems with a script or if something didn't go off and the blue ones are the actual notifications you would see. I also didn't realize that I had a 200 wait command and not a 2000 on the fold, so that's the weird jump when trying to show the AI's hand. I was also going to represent the game with HUDs, but I didn't want to spend a year designing all the cards for all 9 card slots, so I made physical cards and since I was bored, I made a little place to play it.
I made it so you play against an AI because IsRandom didn't always generate the correct cards for remote players and I wanted it to be reliable. The AI is also based on a hand-strength system meaning that the AI doesn't just randomly choose a move for no reason, it chooses to bet, call, raise, ect., depending on how strong it's hand is and how much value it gets from doing so (Its rate of return).
The deal and AI scripts were pretty lengthy because I wanted to make the win check a lot easier, so when it deals a card it stores not only the individual card, but also it's suit and face value. The AI because I wanted to try to make it a more realistic experience so it at least sort of
felt like you were going up against an actual person. The deck is "shuffled" after ever hand as well. Not sure if that's what happens in actual poker games, but I though it made sense
The win check is based on a numerical value, so after it calculates your hand, it assigns them accordingly (EX: Pair = 1, 2 Pair = 2, 3 of a kind = 3, ect). Also, don't mind the organization of the scripts, I get really lazy
Not the best execution in the world when it comes to looks, but I personally think the mechanics of it was pretty cool. The dealing of the cards was pretty easy, but the AI was the "fun" part.
tl;dr: It was a lot of work
Sorry for the essay, there was a lot to explain for those who care to read
. If anyone has any questions, thoughts, or opinions, then let me know.#ThisTook2MuchTime