feat(ai): add heuristic templates

This commit is contained in:
Kristofers Solo 2024-01-09 20:27:17 +02:00
parent e3da29f62b
commit 76e306bd8a
6 changed files with 30 additions and 0 deletions

0
src/ai/__init__.py Normal file
View File

View File

@ -0,0 +1,6 @@
from .bumpiness import bumpiness
from .height import aggregate_height
from .holes import holes
from .lines import complete_lines
__all__ = ["aggregate_height", "bumpiness", "complete_lines", "holes"]

View File

@ -0,0 +1,7 @@
import numpy as np
def bumpiness(
field: np.ndarray[int, np.dtype[np.uint8]],
) -> int:
pass

View File

@ -0,0 +1,5 @@
import numpy as np
def aggregate_height(field: np.ndarray[int, np.dtype[np.uint8]]) -> int:
return 0

View File

@ -0,0 +1,7 @@
import numpy as np
def holes(
field: np.ndarray[int, np.dtype[np.uint8]],
) -> int:
return 0

View File

@ -0,0 +1,5 @@
import numpy as np
def complete_lines(field: np.ndarray[int, np.dtype[np.uint8]]) -> int:
return 0