Exemple #1
0
        public static bool IsBilocationRegion(this IReadOnlyGrid @this, int digit, int region, out short mask)
        {
            if (@this.HasDigitValue(digit, region))
            {
                mask = 0;
                return(false);
            }

            mask = @this.GetDigitAppearingMask(digit, region);
            return(mask.CountSet() == 2);
        }