01-10-2021, 03:30 AM
I tried the principle of selecting a site in one move, laying down shared pieces and choosing one of them in a separate turn with a move from saved start selection to selected shared piece, and removing all shared pieces.
A main problem is the following move doesn't compile:
(move
Select
(from
(sites Occupied by:Mover)
if:(ge 7 ("InfluenceAt"(from)))
)
(then (set State at:(last To) (- 7 ("InfluenceAt" (last To)))))
))
(define "InfluenceAt"
(-
(+ 7 (count Pieces Next in:(sites Around (#1) includeSelf:true)))
(count Pieces Mover in:(sites Around (#1) includeSelf:true))
)
)
Other moves with "InfluenceAT" compile.
The documentation shows (move Select ...) as a decision move, and I have a consequence to the selection, by setting a state (and that state will be different to the base state 0 from before the move)
So why doesn't it compile?
Note: I also tried "last From", and I also tried including a (pass) consequential move linked to the (set ...) with an (and ...) or as a chained consequence, in case an effect consequence is not sufficient for a Select move (eg because no change to board state?) But that did not solve the problem either.
A main problem is the following move doesn't compile:
(move
Select
(from
(sites Occupied by:Mover)
if:(ge 7 ("InfluenceAt"(from)))
)
(then (set State at:(last To) (- 7 ("InfluenceAt" (last To)))))
))
(define "InfluenceAt"
(-
(+ 7 (count Pieces Next in:(sites Around (#1) includeSelf:true)))
(count Pieces Mover in:(sites Around (#1) includeSelf:true))
)
)
Other moves with "InfluenceAT" compile.
The documentation shows (move Select ...) as a decision move, and I have a consequence to the selection, by setting a state (and that state will be different to the base state 0 from before the move)
So why doesn't it compile?
Note: I also tried "last From", and I also tried including a (pass) consequential move linked to the (set ...) with an (and ...) or as a chained consequence, in case an effect consequence is not sufficient for a Select move (eg because no change to board state?) But that did not solve the problem either.