mirror of
https://github.com/kristoferssolo/Tetris.git
synced 2026-03-22 00:36:20 +00:00
feat(ai): add holes calculation
This commit is contained in:
@@ -2,6 +2,7 @@ import unittest
|
||||
|
||||
import numpy as np
|
||||
from ai.moves.height import aggregate_height
|
||||
from ai.moves.holes import holes
|
||||
from ai.moves.lines import complete_lines
|
||||
|
||||
|
||||
@@ -23,3 +24,6 @@ class TestFitness(unittest.TestCase):
|
||||
|
||||
def test_complete_lines(self) -> None:
|
||||
self.assertEqual(complete_lines(self.field), 2)
|
||||
|
||||
def test_holes(self) -> None:
|
||||
self.assertEqual(holes(self.field), 2)
|
||||
|
||||
Reference in New Issue
Block a user