initial commit, nothing much here
This commit is contained in:
22
grid/sphere/cell.py
Normal file
22
grid/sphere/cell.py
Normal file
@@ -0,0 +1,22 @@
|
||||
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__()
|
||||
Reference in New Issue
Block a user