03-23-2021, 03:17 PM
Hi,
I will check why a bit later but in the meantime you can just do the following define which is safer and more efficient than using (sites Empty) here.
Regards,
Eric
I will check why a bit later but in the meantime you can just do the following define which is safer and more efficient than using (sites Empty) here.
Code:
(define "Deploy"
(move Add (piece (id "Hex" Mover))
(to
(union
(sites Mover)
(sites Around
(sites Occupied by:Mover component:"Hex")
)
)
if:(is Empty (to))
)
(then
(add (piece (id "Disc" Mover))
(to (last To))
stack:true
)
)
)
)
Regards,
Eric