02-16-2021, 11:35 AM
(This post was last modified: 02-16-2021, 02:56 PM by dale walton.)
Another issue I find is that Ludii doesn't seem to define the OffDiagonal directions for Hexagonal vertices. i.e the short diagonal directions that should be the same direction as the cell to cell directions.
If the are not defined, I won't be able to use them for determining the cell to Cell directions they are parallel to...
--------------------------------
As a separate issue, With no working direction to them, I can't even select them, even this: isn't working for me:
Select
(from Vertex (sites Empty Vertex))
(to Vertex
(sites Around Vertex ((sites Around Vertex (from) Adjacent)) Adjacent)
)
-------------------------------
I think my easiest work-around is to play on the Verticies of a triangular grid, and select the cells for the group moves...
Edit:
ran into another bug/problem
(move
Add
(to Vertex (sites Empty Vertex)
if: (= 0 (count Pieces Next in:(sites Around Vertex (to))))
)
The condition did not work for the triangular grid ontil I specified use:Vertex for the board.
The boards are different as well, because without use:Vertex you give a colored board with space for both cells and triangles. That is the board where it did not work.
----------------------
What is the difference between:
(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.
But on the cell board, the second form worked, and the analogous:
(sites Incident Cell of:Vertex at:(from)) worked , and doesn't have a corresponding (and confusing - it should be something like "IncidentCell" ) simple form
Which is preferred? which will you make to work for all the boards?
If the are not defined, I won't be able to use them for determining the cell to Cell directions they are parallel to...
--------------------------------
As a separate issue, With no working direction to them, I can't even select them, even this: isn't working for me:
Select
(from Vertex (sites Empty Vertex))
(to Vertex
(sites Around Vertex ((sites Around Vertex (from) Adjacent)) Adjacent)
)
-------------------------------
I think my easiest work-around is to play on the Verticies of a triangular grid, and select the cells for the group moves...
Edit:
ran into another bug/problem
(move
Add
(to Vertex (sites Empty Vertex)
if: (= 0 (count Pieces Next in:(sites Around Vertex (to))))
)
The condition did not work for the triangular grid ontil I specified use:Vertex for the board.
The boards are different as well, because without use:Vertex you give a colored board with space for both cells and triangles. That is the board where it did not work.
----------------------
What is the difference between:
(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.
But on the cell board, the second form worked, and the analogous:
(sites Incident Cell of:Vertex at:(from)) worked , and doesn't have a corresponding (and confusing - it should be something like "IncidentCell" ) simple form
Which is preferred? which will you make to work for all the boards?