(size Stack …)
Edit: But it should be possible to use (count Stack) as well. We used it for Seesaw, because we needed to ignore the tile at the bottom of the stack.
I think this should work:
Edit: But it should be possible to use (count Stack) as well. We used it for Seesaw, because we needed to ignore the tile at the bottom of the stack.
I think this should work:
Code:
(define "CountInStack"
(count Stack
at:#1
if:(= #2 (who at:(to) level:(level)))
)
)