Ejemplo n.º 1
0
 static int calculate(Pcard banker, Pcard player, int bet)
 {
     if (banker.CompareTo(player) > 0)
     {
         int times = (int)(banker.type == CardType.NO_NIU ? CardType.NORMAL : banker.type);
         return(bet * bottom_score * times);
     }
     else
     {
         int times = (int)(player.type == CardType.NO_NIU ? CardType.NORMAL : player.type);
         return(-bet * bottom_score * times);
     }
 }