Chess.Domain.Board.NewSquare C# (CSharp) Method

NewSquare() private static method

private static NewSquare ( int column, int row, ChessPiece piece ) : Square
column int
row int
piece Chess.Data.Entities.ChessPiece
return Chess.Data.Entities.Square
        private static Square NewSquare(int column, int row, ChessPiece piece)
        {
            if (piece != null)
            {
                piece.CurrentColumn = column;
                piece.CurrentRow = row;
                piece.Alive = true;
            }

            return new Square { Column = column, Row = row, ChessPiece = piece };
        }