03-12-2021, 05:54 PM
Eric,
My latest work on Blooms incorporated your advice.
However when you try to place the second stone (first move for P2), Ludii puts it back. From playing around it seems that the problem is the (count Liberties ...) bit.
I attach a .lud file. As it happens I have been using 1.1.15, as I am playing a game under that version and have no specific reason to upgrade yet. However I believe this also happened under 1.1.16.
My latest work on Blooms incorporated your advice.
Code:
// #1 - A/B
(define "MarkSurroundedPiecesById"
(forEach
Group
Cell
Adjacent
if:(= (id #1 Next) (what at:(to)))
(if
(= 0 (count Liberties if:(= (id #1 Next) (what at:(to)))))
(forEach
Site
(sites)
(and
(set State at:(site) ("Captured"))
(addScore Mover 1)
)
)
)
)
)
However when you try to place the second stone (first move for P2), Ludii puts it back. From playing around it seems that the problem is the (count Liberties ...) bit.
I attach a .lud file. As it happens I have been using 1.1.15, as I am playing a game under that version and have no specific reason to upgrade yet. However I believe this also happened under 1.1.16.