Ludii Forum
Bug related to includeSelf in (sites Around) - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5)
+--- Forum: Grammar Problems (https://ludii.games/forums/forumdisplay.php?fid=24)
+--- Thread: Bug related to includeSelf in (sites Around) (/showthread.php?tid=931)



Bug related to includeSelf in (sites Around) - Michael - 04-17-2022

Code:
(sites Around (sites {#1 #2}) includeSelf:False)
returns a region containing #1 and #2. At least in the Test Ludeme dialog.

This does not happen when there is only one site in (sites {}), by the way.


RE: Bug related to includeSelf in (sites Around) - Eric Piette - 04-19-2022

Hi,

Thanks for this!
I just fixed it. That will be in the next release.

Regards,
Eric


RE: Bug related to includeSelf in (sites Around) - Michael - 04-19-2022

Great!

I have a question about (sites Around), by the way. 

Are shared pieces supposed to be included in (sites Around … Own)? They currently are. 

I ask because (is Mover (who at:#1)) returns False when #1 is occupied by a shared piece.

Similarly, shared pieces are not included in (sites Around … Enemy), yet (is Enemy (who at:#1)) returns True when #1 is occupied by a shared piece.