Closed
Description
Repository commit
The typo is found in the get_neighbours(self,cell) function inside machine_learning.py on lines 65 and 78.
Python version (python --version)
Python 3.10.7
Dependencies version (pip freeze)
- Python 3.8.10
- NumPy 1.21.2
Expected behavior
The function get_neighbours(self, cell) should correctly identify and return the neighboring cells of the given cell. The variable storing neighbor coordinates should be correctly spelled (neighbour_cord or neighbor_cord) so that it can be referenced properly within the function.
Actual behavior
The variable neughbour_cord is misspelled, leading to potential confusion or errors if referenced elsewhere in the code. While Python does not enforce strict spelling checks, using a misspelled variable name can make the code harder to read and maintain.