Ludii Forum
Ludemes for finding extreme sites or extent of dynamic regions - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Suggestions (https://ludii.games/forums/forumdisplay.php?fid=10)
+--- Forum: Ludii Features / Services (https://ludii.games/forums/forumdisplay.php?fid=11)
+--- Thread: Ludemes for finding extreme sites or extent of dynamic regions (/showthread.php?tid=743)



Ludemes for finding extreme sites or extent of dynamic regions - dale walton - 11-01-2021

I am interested to find the width or height of an irregular dynamic region for scoring purposes. 
What ludeme is the best to use for this?


RE: Ludemes for finding extreme sites or extent of dynamic regions - Eric Piette - 11-03-2021

Hi,

Depends on the tiling of the board, but in general (like for a square tiling), you will have to compute the difference of the maximum and the minimum of the column/row index of all the elements in that region.

The ludeme to get the minimum/maximum is (results ...), then just a difference between these ones.

Regards,
Eric