Please check my code to count the numbers of neighbours of a cell in an array

I have to make a code that checks the number of neighbours of a cell in an array board of cells.
Last edited on
Its a good attempt. Does it run correctly?
Thank you :) and yes it does, just was checking if the code was worded correctly!
It was error prone, consider using a loop instead.

I don't understand you, you want feedback but delete your post
Topic archived. No new replies allowed.