JsPoker icon indicating copy to clipboard operation
JsPoker copied to clipboard

Bug in status3bot

Open akashkamboj opened this issue 10 years ago • 0 comments

Hi

nice work first of all. I was checking the bots code and see an issue in status3bot, in preflop strategy this is the code:

var action_so_far = Array('raised', 'folded', 'limpers');
        var hand_type = Array('hn', 'pr', 'cn', 'su', 'sc');

        for(i = 0;i < action_so_far.length;i++) {
            for(j = 0;j < hand_type.length;j++) {
                var match = false;

                switch(j) {
                    case 'hn':
                        match = true;
                        break;

                    case 'pr':
                        match = hand.pair;
                        break;

                    case 'cn':
                        match = (hand.connected == 1);
                        break;

                    case 'su':
                        match = hand.suited;
                        break;

                    case 'sc':
                        match = (hand.suited && (hand.connected == 1));
                        break;

in evaluate_preflop method in this switch statement you are checking value of j. but it cannot be ever 'hn'/'pr'.... hence it never raises or do anything except calling the hand. i am not sure what you wanted to write down there.

Can you resolve this?

akashkamboj avatar Jun 26 '15 05:06 akashkamboj