12-23-2020, 12:49 AM
(12-22-2020, 07:52 AM)Michael Wrote: (sites Occupied by:<player>) works. Also (forEach (sites Board) if:(= <int> (who at:(site)))). Not sure if you need "level:(size Stack at:(site))" in (who) to only check the top piece, but I don't thing so (I also don't know if the top level is one less than the size of the stack..).So to specify the component, I need to use
(is In <int> (sites Occupied by:(player <int>) component:"Hex")),
because in
(is Within <int> at:(<int>))
the component index can't be specified without having a player role.
e.g. (id "Hex" <player role>)
Same for (= <int> (what at:(<int>))