Chess.Data.Entities.ChessPiece.InBounds C# (CSharp) Method

InBounds() protected method

protected InBounds ( int row, int column ) : bool
row int
column int
return bool
        protected bool InBounds(int row, int column)
        {
            var rowInBounds = 0 <= row && row <= 7;
            var columnInBounds = (0 <= column && column <= 7);
            return rowInBounds && columnInBounds;
        }