14 lines
346 B
Python
14 lines
346 B
Python
from utils import State
|
|
|
|
class BaseSpecies:
|
|
def setup(self, randkey):
|
|
raise NotImplementedError
|
|
|
|
def ask(self, state: State):
|
|
raise NotImplementedError
|
|
|
|
def update_species(self, state, fitness, generation):
|
|
raise NotImplementedError
|
|
|
|
def speciate(self, state, generation):
|
|
raise NotImplementedError |