Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }