02-04-2021, 10:54 AM
Hi,
I am currently trying to write the game "Duplohex" from the Ludii wishlist (with high priority).
I would consider my code complete, but it does not behave as I would expect.
Note that the rules of the game slightly differ from version to version, and I've implemented it as described in BGG. The goal is, like Hex, to connect two extremities of the board with the same colour. Unlike Hex, however, each player has different types of pieces.
I am using the (is Connected) ludeme for the end condition, but it does not seem to detect the line as expected (see screenshot attached). Btw, the LudiiLanguageReference pdf has the ludeme (isConnected) at page 357 which does not seem to exist (does not compile.).
Am I doing anything wrong? You'll find my code attached as well.
Kind Regards,
Fabio
I am currently trying to write the game "Duplohex" from the Ludii wishlist (with high priority).
I would consider my code complete, but it does not behave as I would expect.
Note that the rules of the game slightly differ from version to version, and I've implemented it as described in BGG. The goal is, like Hex, to connect two extremities of the board with the same colour. Unlike Hex, however, each player has different types of pieces.
I am using the (is Connected) ludeme for the end condition, but it does not seem to detect the line as expected (see screenshot attached). Btw, the LudiiLanguageReference pdf has the ludeme (isConnected) at page 357 which does not seem to exist (does not compile.).
Am I doing anything wrong? You'll find my code attached as well.
Kind Regards,
Fabio