Files
sphere-grid/grid/sphere/cell.py
Alexandre RIO 36a31f1a06
All checks were successful
CI/CD / build (push) Successful in 9m20s
run ruff in CI
2024-11-30 11:23:41 +01:00

22 lines
393 B
Python

class Cell:
MIN_NEIGHBORS = 1
MAX_NEIGHBORS = 4
def __init__(self) -> None:
self.neighbors = []
def add_neightbor(self, new_neighbor: "Cell"):
self.neighbors.append(new_neighbor)
def __str__(self) -> str:
return "o"
class StatSphere(Cell):
pass
class StrengthSphere(StatSphere):
def __init__(self) -> None:
super().__init__()