How can I create a β€œgrid” where everyone knows their neighbor?

Hey guys, I was wondering what is the easiest way to create a layout grid in Javascript / jQuery that will allow each "node" to talk to its closest neighbors (up, down, left and right).

Does anyone have an idea ?! :)

+4
source share
1 answer

It sounds like the logic of Game of Life .

0
source

All Articles