02-11-2021, 09:40 AM
You're right, there was a bug with default piece weights. It's also possible to specify weights per piece type (useful for example if you think it's very important for pawns to move towards corners but for queens to stay away from corners), and these weights were supposed to be 1.0 by default (if left unspecified), but that was broken. That will be fixed in the next version. In the meantime, you could fix it for your current Ludii version by manually specifying the weights for piece types. Something like:
should work for your case (since your game only has "Disc1" and "Disc2" piece types, which will both be matched by just "Disc")
Code:
(centreProximity weight:-1.0 pieceWeights:{ (pair "Disc" 1.0) })
should work for your case (since your game only has "Disc1" and "Disc2" piece types, which will both be matched by just "Disc")