feat(ai): add fitness calculation

This commit is contained in:
Kristofers Solo 2024-01-04 18:45:09 +02:00
parent a49f03248f
commit c16c031ae2

5
src/ai/fitness.py Normal file
View File

@ -0,0 +1,5 @@
import neat
def calculate_fitness(app) -> float | int:
return app.game.score + app.game.lines * 100 + app.game.level * 1000