02-24-2021, 09:19 AM
In a recent thread I asked:
4.What is the difference between the following, and why do they require different board geometries?:
(sites Cell Vertex (from)) --- this one works on the use:vertex board.
(sites Incident Vertex of:Cell at:(from)) --- this one does not work on the use:vertex board.
Eric stated that
The first one is returning the indices of the cells of the vertex from, the second one is returning the list of vertices of the cell from which is not the same.
However the documentation for (sites) states for the Cell parameter something a bit different, and strange:
12.4.4 sitesIndexType
Specifies sets of board sites by some indexed property.
Cell : Vertices that make up a cell.
My understanding is that would mean that in (sites Cell Vertex (from)) the (from) must be a cell and the result is a set of vertices, - which is the opposite of what you have said.
Also, my experience was that it indeed works the way the documenttion says on a board with use:vertex.
Please check it out and make it consistent in the way it works, the way it is documented, and the way you intend.
I had also tried:
(sites Incident Vertex of:Cell at:(from))
I found it did not work on a board with use:vertex If it had, I would gladly have used it because it seems like it has a more general structure.
I believe it did work when use:vertex was not specified, and thus when the board Ludii selected then had space for pieces, on both cells and vertices.
4.What is the difference between the following, and why do they require different board geometries?:
(sites Cell Vertex (from)) --- this one works on the use:vertex board.
(sites Incident Vertex of:Cell at:(from)) --- this one does not work on the use:vertex board.
Eric stated that
The first one is returning the indices of the cells of the vertex from, the second one is returning the list of vertices of the cell from which is not the same.
However the documentation for (sites) states for the Cell parameter something a bit different, and strange:
12.4.4 sitesIndexType
Specifies sets of board sites by some indexed property.
Cell : Vertices that make up a cell.
My understanding is that would mean that in (sites Cell Vertex (from)) the (from) must be a cell and the result is a set of vertices, - which is the opposite of what you have said.
Also, my experience was that it indeed works the way the documenttion says on a board with use:vertex.
Please check it out and make it consistent in the way it works, the way it is documented, and the way you intend.
I had also tried:
(sites Incident Vertex of:Cell at:(from))
I found it did not work on a board with use:vertex If it had, I would gladly have used it because it seems like it has a more general structure.
I believe it did work when use:vertex was not specified, and thus when the board Ludii selected then had space for pieces, on both cells and vertices.