05-29-2020, 08:09 AM
(This post was last modified: 05-29-2020, 08:20 AM by dale walton.)
Is their an entity for each grid-line, potential line of sight (los), or of movement (lom), eg each rook file, each bishop diagonal, or potentially other angles?
Or does one need to iterate adjacencies in the same direction each time one needs to determine this?
In some cases I would like to count how many enemies can be seen along a grid line. If there is an entity for a line of movement, this would just be a count of the number of grid-lines for which the locations between the position and an enemy are all empty.
In another case I would like to create a state at cells to represent the distances to a given players pieces by order of length. and update only those on the gridlines of the to and from positions.
basically a table of
gridline; cell; cell-seq-on-gridline; grid-seq-at-cell (i.e. == direction); type-of-line (eg. bishop, rook, queen ... line-of-movement, line-of-influence...)
Is this what is meant by "track"?
is it something that is / could be defined by default when a standard board is created?
Sorry if this is already covered in the documentation, as I am just starting here.
Or does one need to iterate adjacencies in the same direction each time one needs to determine this?
In some cases I would like to count how many enemies can be seen along a grid line. If there is an entity for a line of movement, this would just be a count of the number of grid-lines for which the locations between the position and an enemy are all empty.
In another case I would like to create a state at cells to represent the distances to a given players pieces by order of length. and update only those on the gridlines of the to and from positions.
basically a table of
gridline; cell; cell-seq-on-gridline; grid-seq-at-cell (i.e. == direction); type-of-line (eg. bishop, rook, queen ... line-of-movement, line-of-influence...)
Is this what is meant by "track"?
is it something that is / could be defined by default when a standard board is created?
Sorry if this is already covered in the documentation, as I am just starting here.