ScrambleSquaresSolver/Models/Grid.cs
/// <summary>
/// Returns the coordinates of the next empty spot, or null if there is none.
/// </summary>
/// <returns></returns>
Returns the coordinates of the next empty spot, or null if there is none.
Returns the coordinates of the next empty spot or null if there is none .
public Tuple<int,int> FindNextEmptySpot()
        {
            for (int i = 0; i < _sideLength; i++)
            {
                for (int j = 0; j < _sideLength; j++)
                {
                    if (!_grid[i, j].HasTile)
                        return new Tuple<int, int>(i, j);
                }
            }
            return null;
        }
public Tuple < int , int > FindNextEmptySpot ( ) { for ( int i = 0 ; i < _sideLength ; i ++ ) { for ( int j = 0 ; j < _sideLength ; j ++ ) { if ( ! _grid [ i , j ] . HasTile ) return new Tuple < int , int > ( i , j ) ; } } return null ; }
Returns the coordinates of the next empty spot, or null if there is none.
Returns the coordinates of the next empty spot or null if there is none .
None