fix(ai): next figure

This commit is contained in:
Kristofers Solo 2024-01-05 16:22:14 +02:00
parent 4e46047243
commit 90eac234ec

View File

@ -29,7 +29,7 @@ def eval_genome(genome: neat.DefaultGenome, config: neat.Config) -> float:
next_figure: list[int] = [ next_figure: list[int] = [
vec vec
for vec in app.game.get_next_figure().value.shape for vec in app.next_figures[0].value.shape
for vec in (int(vec.x), int(vec.y)) for vec in (int(vec.x), int(vec.y))
] ]