feat(ai): add config

This commit is contained in:
Kristofers Solo
2024-01-04 18:33:03 +02:00
parent 932dea1676
commit 96802195cb
2 changed files with 92 additions and 0 deletions

13
src/ai/config.py Normal file
View File

@@ -0,0 +1,13 @@
import neat
from utils import BASE_PATH
def get_config() -> neat.Config:
config_path = BASE_PATH / "config.txt"
return neat.Config(
neat.DefaultGenome,
neat.DefaultReproduction,
neat.DefaultSpeciesSet,
neat.DefaultStagnation,
config_path,
)