굵게 표시한 부분이 포카인드하고 풀하우스 인거 구분하는 건데...
....안돼....모르겠어....설명할 힘도 없다 이제...

포카인드가 아닌데 자꾸 포카인드로 잡고
풀하우스가 아닌데 풀하우스로 잡고...
카드가 랜덤으로 5D 6D4H 3D 2S
이런식으로 생성되고 정렬돼....
앞자리는 숫자 뒷자리는 카드 모양...
getValue는 카드 숫자 반환해주는 함수고.....


public static boolean isFourKind(Card card) //test finished
        {
                String[] cardList=new String[5];
                cardList=card.getCardList();
        
                same=1;
                differ=0;
                for(int i=0;i<4; i++){
                        for(int j=i+1;j<5;j++){
                                fCardValue=card.getValue(cardList[i].charAt(0)); 
                                sCardValue=card.getValue(cardList[j].charAt(0));
                                if(fCardValue==sCardValue){                                                
                                        same++;
                                        if(same==4)
                                                return true;
                                }
                                else if(fCardValue!=sCardValue)
                                {
                                        differ++;
                                        same=1;
                                        i=j;
                                }
                        }
                }
                
                return false;
        }
        
        public static boolean isFullHouse(Card card) //test finished
        {
                String[] cardList=new String[5];
                cardList=card.getCardList();
                
                same=1;
                differ=0;

                for(int i=0;i<4; i++){        
                        for(int j=i+1;j<5;j++){
                                fCardValue=card.getValue(cardList[i].charAt(0));
                                sCardValue=card.getValue(cardList[j].charAt(0));
                                if(fCardValue==sCardValue){                                                
                                        same++;
                                        if((same==3 && differ==1))
                                                return true;
                                        else if((same==2 && differ==1))
                                                return true;
                                }
                                else if(fCardValue!=sCardValue)
                                {
                                        differ++;
                                        same=1;
                                        i=j;
                                }
                        }
                }
                
                
                return false;
        }