Finding neighbors in a matrix and storing those neighbors in a new matrix
Finding neighbors in a matrix and storing those neighbors in a new matrix Question: What I have is a matrix of characters that looks like this: matrix = [ [‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘, ‘-‘], [‘-‘, ‘-‘, ‘-‘, ‘+’, ‘-‘, ‘-‘, …
Total answers: 1