Ludii Forum
New Game - Netted but inefficient and buggy... - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5)
+--- Forum: Game Problems (https://ludii.games/forums/forumdisplay.php?fid=17)
+--- Thread: New Game - Netted but inefficient and buggy... (/showthread.php?tid=606)

Pages: 1 2


RE: New Game - Netted but inefficient and buggy... - Eric Piette - 07-05-2021

Hi,

Yes, the ludeme (intersection ...) for ArrayIntFunction was not working correctly, I just fixed it in dev.
I did not understand what you mean after with the syntax error about "without it, but I don't know why that makes a difference. if (array ...) can understand the syntax, why can't (difference for regions or (intersection for regions understand it?"

And for the separate bug, that's something that seems specific to your game, which is a bit too important for me to look at in detail.

Regards,
Eric


RE: New Game - Netted but inefficient and buggy... - dale walton - 07-05-2021

"I did not understand what you mean after with the syntax error about "without it, but I don't know why that makes a difference. if (array ...) can understand the syntax, why can't (difference for regions or (intersection for regions understand it?""

It was referring to the script above it, and a 2nd bug. Below. I repeat the comparison to make my intent clearer:

This compiled:

(define "HalfWayEdge"
(min
(intersection
(array (sites Incident Edge of:Cell at:(regionSite ("SharedCells") index:0)))
(array (sites Incident Edge of:Cell at:(regionSite ("SharedCells") index:1)))
)))

But this didn't:

(define "HalfWayEdge"
(intersection
(sites Incident Edge of:Cell at:(regionSite ("SharedCells") index:0)))
(sites Incident Edge of:Cell at:(regionSite ("SharedCells") index:1)))
))
Unexpected syntax '(sites Incident Edge ...' in 'at:(intersection (sites Incid...'.

Why do the <region> math methods fail to compile, while the <array> math statements are OK (and the conversion of region to array is OK?) That seems like an additional bug to me.

========================
Re the other bug: From a scriptwriter's point of view, such glitches make finding workable scripts difficult.
However, I understand you have a lot to do and have to prioritize. I tried to test and comment on it to isolate when it occurs and simplify your task,