02-23-2021, 09:55 AM
Good to know. However it was the last thing I tried. The other errors were from trying to use it in (sites Direction ... (directions ...)), and in (slide ... (directions ...)) since that was in your original example, but those were kicked out by the compiler before as syntax errors.
So which ludemes use direction in the sense of rotation, and which use it in the sense of absolute direction. And in the new (directions ...) ludeme what is the data structure and kind of values created, and which ludemes is it compatible with?
Other unanswered questions:
1) OffDiagonal directions for Hexagonal vertices. Do you have them, if not when?
2) The following should select the Off-diagonal vertices on a hex grid, (i.e the short diadonals of the hexes or vertexes at 2 steps distance) but does not Why?
Select (from Vertex (sites Empty Vertex)) (to Vertex (sites Around Vertex ((sites Around Vertex (from) Adjacent)) Adjacent))
3) Why doesn't the following work on the Cell-and-vertex board (ie why does (board Tri use:Vertex) need to be specified in order to make it work?
(move Add (to Vertex (sites Empty Vertex) if: (= 0 (count Pieces Next in:(sites Around Vertex (to)))))
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.
So which ludemes use direction in the sense of rotation, and which use it in the sense of absolute direction. And in the new (directions ...) ludeme what is the data structure and kind of values created, and which ludemes is it compatible with?
Other unanswered questions:
1) OffDiagonal directions for Hexagonal vertices. Do you have them, if not when?
2) The following should select the Off-diagonal vertices on a hex grid, (i.e the short diadonals of the hexes or vertexes at 2 steps distance) but does not Why?
Select (from Vertex (sites Empty Vertex)) (to Vertex (sites Around Vertex ((sites Around Vertex (from) Adjacent)) Adjacent))
3) Why doesn't the following work on the Cell-and-vertex board (ie why does (board Tri use:Vertex) need to be specified in order to make it work?
(move Add (to Vertex (sites Empty Vertex) if: (= 0 (count Pieces Next in:(sites Around Vertex (to)))))
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.