Ludii Forum
The definition of OffDiagonal - 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: The definition of OffDiagonal (/showthread.php?tid=457)



The definition of OffDiagonal - Michael - 02-24-2021

The definition of the OffDiagonal directions is "All directions between two cells sharing a vertex but not an edge".

In the attached image, doesn't the square with the pawn on it share a vertex, but not an edge, with each of those other dark squares?


RE: The definition of OffDiagonal - Eric Piette - 02-24-2021

Hi,

Not sure which ones you are talking about, what is "each of those other dark squares"?
Can you draw on that pic?

Regards,
Eric


RE: The definition of OffDiagonal - Michael - 02-24-2021

The ones diagonal to the one with the pawn.


RE: The definition of OffDiagonal - Eric Piette - 02-24-2021

That is just "Diagonal".

OffDiagonal is all the ones which are not diagonals.

def of diagonal is : "All directions between two sites in line through a vertex"

I will update the LGLG to be clear on OffDiagonal excluded Diagonal even if the name is telling that.

Regards,
Eric


RE: The definition of OffDiagonal - Michael - 02-24-2021

So the OffDiagonal directions are "all directions between two cells sharing a vertex but not an edge" minus "all directions between two sites in line through a vertex"?


RE: The definition of OffDiagonal - Eric Piette - 02-24-2021

Hi,

Yes, all the ones following that definition which are not diagonal.

Regards,
Eric


RE: The definition of OffDiagonal - QuaGamer - 01-16-2022

My understanding of this is that a cell in a square layout is actually a cube with 8 vertices and 12 edges. For game boards that use layers, OffDiagonal neighbors are the eight cells which are UNW, UNE, USW, USE, DNW, DNE, DSW, and DSE.