Ello Chaps and Chapesses!
I have a Javascript array like this:
var tinkerArray = [
[0,0,0],
[0,1,0],
[0,0,0]
];
My question is, how can I check the array nodes surrounding each node…
e.g. starting at [0,0], check [0,1] and [1,0] etc etc
Thanks!
edit: if possible I would like a scalable solution whereby if the array was 7×7 – the algorithm would still work… :/
Update: