Ludii Forum
hex rectangles with consistent row length - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Questions (https://ludii.games/forums/forumdisplay.php?fid=13)
+--- Forum: About the Ludii Grammar (https://ludii.games/forums/forumdisplay.php?fid=15)
+--- Thread: hex rectangles with consistent row length (/showthread.php?tid=2306)



hex rectangles with consistent row length - Malcohol - 04-07-2024

Apologies if this is obvious. 

I'm trying to create a rectangular board of pointy hexagons, where all rows have the same number of cells. While I suspect I'll be able to hack something complex together if I try, I feel that there's probably a best way to do this in Ludii.

Writing something like "(board (hex Rectangle 8 7))" is generating a board with rows alternating between 6 and 7 cells.

Thanks for any advice.

Malcolm