AIsOfCatan.Board.PlacePiece C# (CSharp) Method

PlacePiece() public method

public PlacePiece ( Intersection intersection, Piece p ) : IBoard
intersection AIsOfCatan.API.Intersection
p AIsOfCatan.API.Piece
return IBoard
        public IBoard PlacePiece(Intersection intersection, Piece p)
        {
            var newSettlements = new Dictionary<Intersection, Piece>(settlements);
            newSettlements[intersection] = p;
            return new Board(terrain, new Dictionary<Edge, int>(roads), newSettlements, robberLocation, harbors, allIntersections, allEdges);
        }