public override int CompareTo(IValuable other) { var asQuadruple = other as Quadruple; if (asQuadruple != null) { return(CompareTo(asQuadruple)); } return(GlobVars.TypeToValue[this.GetType()] - GlobVars.TypeToValue[other.GetType()]); }
public override int CompareTo(IValuable other) { var asRoyalFlush = other as RoyalFlush; if (asRoyalFlush != null) { return(CompareTo(asRoyalFlush)); } return(GlobVars.TypeToValue[this.GetType()] - GlobVars.TypeToValue[other.GetType()]); }
public override int CompareTo(IValuable other) { var asPair = other as Pair; if (asPair != null) { return(CompareTo(asPair)); } return(GlobVars.TypeToValue[this.GetType()] - GlobVars.TypeToValue[other.GetType()]); }