public override int CompareToOffsuitHand(OffsuitHandBase other) { var otherFullHouse = other as FullHouse; if (otherFullHouse == null) { return(HandRank.CompareTo(other.HandRank)); } if (TriRank != otherFullHouse.TriRank) { return(TriRank.CompareTo(otherFullHouse.TriRank)); } return(PairRank.CompareTo(otherFullHouse.PairRank)); }
public override int CompareToOffsuitHand(OffsuitHandBase other) { var otherThreeSome = other as ThreeSome; if (otherThreeSome == null) { return(HandRank.CompareTo(other.HandRank)); } if (TriRank != otherThreeSome.TriRank) { return(TriRank.CompareTo(otherThreeSome.TriRank)); } if (Kicker1Rank != otherThreeSome.Kicker1Rank) { return(Kicker1Rank.CompareTo(otherThreeSome.Kicker1Rank)); } return(Kicker2Rank.CompareTo(otherThreeSome.Kicker2Rank)); }