Esempio n. 1
0
 bool isHigher(Hand tmp) {
     int rank1=getRank();
     int rank2=tmp.getRank();
     if (rank1>rank2)
         return true;
     else if (rank1==rank2) {
         if (rank1==0)
             return getHeighest(tmp);
         else if (rank1==1) { // one pair
             return getHeighestOnePair(tmp);
         } else if (rank1==2) { // two pairs
             
         } else if (rank1==3) { // three of a kind
             
         } else if (rank1==4) { // straight
             
         } else if (rank1==5) { // flush
             
         } else if (rank1==6) { // full house
             return getHeighestFull(tmp);
         } else if (rank1==7) { // four of a kind
             return getHeighestFour(tmp);
         } else if (rank1==8) { // straight flush
             return getHeighest(tmp);
         } else
             return true; // <<--- noch nicht implementiert
     } else {
         return false;
     }
 }
Esempio n. 2
0
size_t board_rank(Hand hand, Card flop1, Card flop2, Card flop3) {
    hand.append(flop1);
    hand.append(flop2);
    hand.append(flop3);
    return hand.getRank();
}