poker 3/4 kind of
#1

pawn Код:
// Four of a Kind Check
       // Three of a Kind Check
        for(new i = 0; i < 4; i++) {
                for(new j = 0; j < 13; j++) {
                        if(suitArray[i][j] == 1) {
                                for(new c = 0; c < 4; c++) {
                                        if(suitArray[c][j] == 1) {
                                                tmp++;
                                        }
                                }
                                if(tmp == 4) {
                                        isFour = true;
                                }
                                else if(tmp >= 3) {
                                        isThree = true;
                                } else {
                                        tmp = 0;
                                }
                        }
                }
        }
Why could this return false 4 kind of? It returns 4 kind of even if there is only 3 kind of..
Reply


Messages In This Thread
poker 3/4 kind of - by ajwar - 18.09.2014, 19:47
Re: poker 3/4 kind of - by austin070 - 18.09.2014, 23:14
Re: poker 3/4 kind of - by Ihateyou - 18.09.2014, 23:54
Re: poker 3/4 kind of - by Threshold - 19.09.2014, 01:07
Re: poker 3/4 kind of - by ajwar - 19.09.2014, 10:53
AW: poker 3/4 kind of - by Nero_3D - 19.09.2014, 13:36

Forum Jump:


Users browsing this thread: 1 Guest(s)