ScrambleSquaresSolver/Models/Side.cs
/// <summary>
/// Returns true if the other side will be a legal position
/// </summary>
/// <param name="other"></param>
/// <returns></returns>
Returns true if the other side will be a legal position
Returns true if the other side will be a legal position
public bool IsLegalMatch(Side other)
        {
            if (other == null)
                return true;
            return this.SidePattern != other.SidePattern && this.Pattern == other.Pattern;
        }
public bool IsLegalMatch ( Side other ) { if ( other == null ) return true ; return this . SidePattern != other . SidePattern && this . Pattern == other . Pattern ; }
Returns true if the other side will be a legal position
Returns true if the other side will be a legal position
// If null, there is no adjacent tile and it is legal // A legal position matches the pattern but not the sidePattern
None
other
Side
None