mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
some fix
This commit is contained in:
parent
a1797869db
commit
38696efdfb
@ -91,8 +91,8 @@ class array2d(Generic[T]):
|
||||
self.data = other.data.copy()
|
||||
|
||||
# for cellular automata
|
||||
def count_neighbors(self, value) -> array2d[int]:
|
||||
new_a: array2d[int] = array2d(self.n_cols, self.n_rows)
|
||||
def count_neighbors(self, value) -> 'array2d[int]':
|
||||
new_a = array2d(self.n_cols, self.n_rows)
|
||||
for j in range(self.n_rows):
|
||||
for i in range(self.n_cols):
|
||||
count = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user