12-22-2020, 07:52 AM
(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..).