public Player(string playerName, Color playerColor, bool isFirst, List <ChessPieceBase> specialChesses) { PlayerName = playerName; PlayerColor = playerColor; IsFirst = isFirst; Chesses = specialChesses; for (int i = 0; i < 12 - specialChesses.Count; i++) { ChessPieceNormal chessPiece = new ChessPieceNormal(); Chesses.Add(chessPiece); } }
public Player(string playerName, Color playerColor, bool isFirst) { PlayerName = playerName; PlayerColor = playerColor; IsFirst = isFirst; Chesses = new List <ChessPieceBase>(); for (int i = 0; i < 12; i++) { ChessPieceNormal chessPiece = new ChessPieceNormal(); Chesses.Add(chessPiece); } }