Ludii Forum
Restrictions on where to Add - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Questions (https://ludii.games/forums/forumdisplay.php?fid=13)
+--- Forum: About the Ludii Grammar (https://ludii.games/forums/forumdisplay.php?fid=15)
+--- Thread: Restrictions on where to Add (/showthread.php?tid=143)

Pages: 1 2


RE: Restrictions on where to Add - Eric Piette - 09-06-2020

Hi,

Oh yeah that seems more complex if we add that other constraint.
I will discuss it with the others next week, to see if we think of a way to describe that nicely :)

Regards,
Eric Piette


RE: Restrictions on where to Add - Eric Piette - 09-07-2020

Hi,

I made the fix in (sites Group ...) in order to work as expected. So in the next release you will be able to do what you want here with it.

In attachment, an example .lud to help you with what you described in the previous posts. In it, I force the move to be in a site where it would be possible to make a group of 2 sites orthogonally connected after placing the first piece without to connect Orthogonally to any other sites.

That should help you to make your game and also to make that more general to group greater than 2.

Regards,
Eric Piette


RE: Restrictions on where to Add - Michael - 09-07-2020

Great news! Thanks! 

I take it the attached file isn't supposed to compile in the current version. I get the error message "Unexpected syntax 'in:(sites Group at:(s...' in '(count Sites in:(sites Group ...'.".


RE: Restrictions on where to Add - Eric Piette - 09-07-2020

Yes with the current release it can not compile, only from the next one.