I don't get the neighboring tile numbering. Is it like this?
0 1 2
3 4 5
6 7 8
What's the current cell?A diagram would help
0 1 2
3 4 5
6 7 8
What's the current cell?A diagram would help
In the post, it just counts how many of the 8 tiles are floor (which means 9 possibilities, including none of them). They aren't assigned index numbers.
Edit: ha, we all jumped on you. So now this is explained three different ways.