Hi.
I downloaded your code for the poker app and have been playing around with it. It's a great game. Tell the creator he did a fantastic job.
I was looking at the code for the bots and have found what I think is a potential bug. You can check it out. Just want to help improve the app.
Feel free to discard this email if I don't know what I'm talking about.
In the internal_setup function of the bot.js the NUM_IN_GAME and NUM_IN_HAND are initialized the when the game is started, but never again set back to 0. As the game goes on, the numbers keep incrementing. So the conditions to check if more than 3 players are in the game and the conditions to check the number of players in the hand are not working.
Example
if (POT_LEVEL > 75) return internal_what_do_x("60:ALLIN,10:BIG,20:MED,5:SMALL,5:CALL");
if (NUM_IN_HAND < 4) return internal_what_do_x("2:BIG,15:MED,33:SMALL,50:CALL");
if (NUM_IN_GAME > 3) {
MED = CALL + BIG_BLIND * 4;
BIG = CALL + BIG_BLIND * 10;
Thanks again for the Poker Game. Feel free to email me.
-Mike Matteo
You are perfectly right, it is a bug. I have fixed it in 01Feb2021.zip, feel free to test it.
Thanks for reporting!
Wow. That was quick.
I will check it out. Thanks.
You are perfectly right, it is a bug. I have fixed it in 01Feb2021.zip, feel free to test it.
Thanks for reporting!
[tickets:#9] Potential But in Bot Code
Status: open
Milestone: 2.0
Created: Sun Jan 31, 2021 05:10 PM UTC by Michael Matteo
Last Updated: Sun Jan 31, 2021 05:10 PM UTC
Owner: nobody
Hi.
I downloaded your code for the poker app and have been playing around with it. It's a great game. Tell the creator he did a fantastic job.
I was looking at the code for the bots and have found what I think is a potential bug. You can check it out. Just want to help improve the app.
Feel free to discard this email if I don't know what I'm talking about.
In the internal_setup function of the bot.js the NUM_IN_GAME and NUM_IN_HAND are initialized the when the game is started, but never again set back to 0. As the game goes on, the numbers keep incrementing. So the conditions to check if more than 3 players are in the game and the conditions to check the number of players in the hand are not working.
Example
if (POT_LEVEL > 75) return internal_what_do_x("60:ALLIN,10:BIG,20:MED,5:SMALL,5:CALL");
if (NUM_IN_HAND < 4) return internal_what_do_x("2:BIG,15:MED,33:SMALL,50:CALL");
if (NUM_IN_GAME > 3) {
MED = CALL + BIG_BLIND * 4;
BIG = CALL + BIG_BLIND * 10;
Thanks again for the Poker Game. Feel free to email me.
-Mike Matteo
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/js-css-poker/tickets/9/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Tickets:
#9