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

PawnRow() private static method

private static PawnRow ( int row, Team team ) : Chess.Data.Entities.Square[]
row int
team Team
return Chess.Data.Entities.Square[]
        private static Square[] PawnRow(int row, Team team)
        {
            var squares = new List<Square>();

            for (var c = 0; c < 8; c++)
                squares.Add(NewSquare(c, row, new Pawn() { Team = team, PieceType = PieceType.Pawn }));

            return squares.ToArray();
        }