01-15-2021, 11:07 AM
In section 8.1.12 there is a where ludeme:
So assuming each player only has one piece of the sought for type this can be used to locate it. However if this is a stacking game it will not tell you the level, which is a problem.
How difficult would it be to add a corresponding level ludeme in some future release?
I did try to work out a way to track site and level data myself, but it can't work because the map/mapEntry constructs are read-only. That would work if they were, but would be I believe less efficient, require more code and possibly be more of a departure from existing Ludii.
Nicholas
Code:
(where <string> (<int> | <roleType>) [state:<int>] [<siteType>])
(where <int> [<siteType>])
So assuming each player only has one piece of the sought for type this can be used to locate it. However if this is a stacking game it will not tell you the level, which is a problem.
How difficult would it be to add a corresponding level ludeme in some future release?
I did try to work out a way to track site and level data myself, but it can't work because the map/mapEntry constructs are read-only. That would work if they were, but would be I believe less efficient, require more code and possibly be more of a departure from existing Ludii.
Nicholas