In the attached game, the following ludeme should be called when a player ends their turn:
The way I understand this, it should first set the mover's score to 0, then go through all groups of "Disc0" and add to the mover's score the product of the group's size and the number of pieces they have next to that group. But the part inside (then) simply isn't executed. All that happens is that the score is set to 0.
What am I misunderstanding?
Oops. The "P1" should be "Mover", but that's irrelevant.
Code:
(define "UpdateScore"
(set Score Mover 0
(then
(forEach Group
if:(= (id "Disc0") (what at:(to)))
(addScore P1
(*
(count Sites in:(sites))
(count Sites
in:(sites Around
(sites)
Own
)
)
)
)
)
)
)
)
What am I misunderstanding?
Oops. The "P1" should be "Mover", but that's irrelevant.