mirror of
https://github.com/kristoferssolo/Tetris.git
synced 2026-03-22 00:36:20 +00:00
feat(ai): add config
This commit is contained in:
13
src/ai/config.py
Normal file
13
src/ai/config.py
Normal 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,
|
||||
)
|
||||
Reference in New Issue
Block a user