12-12-2020, 06:18 PM
(This post was last modified: 12-13-2020, 08:46 AM by slimy_asparagus.)
I have the attached test code. P1 should select one of their pieces and it should flip.
EDIT: Fixed it! I need to use "(last From)".
EDIT2: Okay I have changed the title, because although I got it working, there is still something that does not make sense to me.
The original (at least at some point in my playing with it) piece of code was:
It did not work because (site) was no longer valid there. But why not?
EDIT: Fixed it! I need to use "(last From)".
EDIT2: Okay I have changed the title, because although I got it working, there is still something that does not make sense to me.
The original (at least at some point in my playing with it) piece of code was:
Code:
(forEach Site ("FlippableSites")
(move Select (from (site))
(then (flip (site)))
)
)