12-22-2020, 06:31 AM
Your right I guess. To me this is a black box. There is nothing I can find to turn a player index into a role, and the (id function to find a component index seams to require a role? - or at least a player index derived via a role. If the later, I was hoping that the id function would accept it. Occupied by: also needs a role.
So how can I generate a role index eg "P1" ??, or otherwise check for pieces owned by a specific, dynamically-determined player role?
So how can I generate a role index eg "P1" ??, or otherwise check for pieces owned by a specific, dynamically-determined player role?