Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in status3bot #21

Open
akashkamboj opened this issue Jun 26, 2015 · 0 comments
Open

Bug in status3bot #21

akashkamboj opened this issue Jun 26, 2015 · 0 comments

Comments

@akashkamboj
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant