Exemple #1
0
 private void InitPlayer(Player player)
 {
     if (player == null)
     {
         throw new ArgumentNullException();
     }
     player.Init();
     foreach (var coordinate in player.DictPointPiece.Keys)
     {
         Piece.PieceType pieceType;
         player.DictPointPiece.TryGetValue(coordinate, out pieceType);
         Board.addToGrid(coordinate.X, coordinate.Y, player.Color, pieceType);
     }
 }