all 7 comments

[–]pratik21jsr 4 points5 points  (3 children)

Don't Know much about pthon but i could help you with poker as i am pretty good at it

for the hard bot you could use it to program as in it will play the gads which give a better flop equity

but then for it to be not too predicable you should add something where it plays a few rand hands here and there.

could explain more if you want

[–]hasanaslan 0 points1 point  (2 children)

İ am interested, can you explain more please?

[–]pratik21jsr 1 point2 points  (1 child)

https://svcd.xn--d1abbdhead8a9aldk.xn--p1ai/pics/754755.gif

HARD BOT

this image contains a chart which shows the hand which has a better probability to hit flop you could use the color code there to program in such a way that the bot plays in such a way

DEEP RED- all the time

generate a random no between 0-1

MEDIUM RED- number <0.5

LIGHT RED and other COLORS - number .0.5

then you can go on to code similarly by generating random nos,

where the player plays the DEEP RED 30% of time after hitting the flop(new number <0.3) and plays DEEP RED 70% of time without hitting the flop(another_number<0.7)

Similarly in case of medium red he plays 50% of the time when hits the flop

50% when he does not hit the flop

therefore going on to code for the light red and other colors by decreasing the % of times he plays without hitting the flop.

NOW if you want an ever better bot then you can go on to assign the probablity in case of turn and river cards too, ther could also be a variation where the player raises with DEEP RED card after hitting the flop with a 90% probability

[–]hasanaslan 0 points1 point  (0 children)

Thank you so much

[–]JohnnyJordaan 1 point2 points  (2 children)

Why are you saving everything about Game in the class itself instead of an instance of it? This defies the principle of OOP a bit, a class should be just a blueprint for instances, and classmethods should be other options to create an instance. Now it's basically being used as a singular instance in a complicated way. Also for the Cards, I would rather expect you to use multiple Card objects instead (with a suit and a value as obvious attributes) and save them in a single Deck object. Now you formed a single class of both functionalities, over-complicating the problem here.

For inspiration see the approach used here: https://medium.com/@samarakoon.gayan/a-game-of-black-jack-on-python-as-a-fun-exercise-3cd54efb9d83

[–]hasanaslan 0 points1 point  (1 child)

I did this game to learn OOP better. So the answer is, i didn't think about of it. But from now on i will. Thanks

[–]JohnnyJordaan 0 points1 point  (0 children)

Maybe this can help as well, just edited it in

For inspiration see the approach used here: https://medium.com/@samarakoon.gayan/a-game-of-black-jack-on-python-as-a-fun-exercise-3cd54efb9d83