11-11-2021, 12:57 AM
I'm trying to understand how to specify patterns using
In particular, I'm looking at the example on page 86 of the Ludii Game Logic Guide
So this specifies four adjacent pieces in a square all of the same type. I'd like to change this to match four pieces in a square with a space between each piece (i.e. the four pieces are in the corner cells of a 3x3 region). I've done a text search through all the .lud files and don't find much in the way of examples to try and generalize from. I've tried
But this doesn't seem to work.
Code:
(is Pattern ...)
In particular, I'm looking at the example on page 86 of the Ludii Game Logic Guide
Code:
(is Pattern {F R F R F R F})
So this specifies four adjacent pieces in a square all of the same type. I'd like to change this to match four pieces in a square with a space between each piece (i.e. the four pieces are in the corner cells of a 3x3 region). I've done a text search through all the .lud files and don't find much in the way of examples to try and generalize from. I've tried
Code:
(is Pattern {F F R F F R F F R F F})
But this doesn't seem to work.