Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 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);
     }
 }