Skip to content

Bug in status3bot #21

@akashkamboj

Description

@akashkamboj

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions