Ludii Forum
Many ludemes don't respect use:Vertex default. - 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: Many ludemes don't respect use:Vertex default. (/showthread.php?tid=131)



Many ludemes don't respect use:Vertex default. - ccxvii - 08-15-2020

(count Pieces Mover) for example, always counts pieces only on Cell elements. The documentation clearly says that the default is "Vertex if using intersections".


RE: Many ludemes don't respect use:Vertex default. - Eric Piette - 08-15-2020

Hi,

I just tested (count Pieces Mover) with a (board (square 3) use:Vertex) with some pieces on the board and some simple rules.
The result is correct during all the game.

And for that case, what is said in the documentation of (count Pieces ...) about using the default site type of the board if the type of the site is not defined is working.

Regards,
Eric Piette


RE: Many ludemes don't respect use:Vertex default. - ccxvii - 08-15-2020

Have you tried the attached example? I cannot make it advance to the next phase unless I add "Vertex" to the count ludeme in nextPhase.


RE: Many ludemes don't respect use:Vertex default. - Eric Piette - 09-06-2020

Hi,

Yes I tried it without to touch the file. The current condition is "(nextPhase (= 5 (count Pieces P2)) "Movement")"
And that works for me. Do you use the latest version?

Regards,
Eric Piette


RE: Many ludemes don't respect use:Vertex default. - ccxvii - 09-08-2020

Hi,

Seems to be fixed since Ludii 1.0.4.