11-28-2020, 03:20 PM
I'm still having problems understanding (apply). In the attached .lud, shouldn't the correct behavior be that, when I click an enemy stone it is replaced by a friendly stone? The relevant part of the script looks like this:
I would think that the enemy stone is removed, then a friendly stone is added. But what happens is that the friendly stone gets stacked on the enemy stone. Why?
Code:
(play
(move Add
(to
(sites Occupied by:Next)
(apply (remove (to)))
)
stack:true
)
)