mirror of
https://github.com/kristoferssolo/Tetris.git
synced 2025-10-21 20:00:35 +00:00
feat(ai): add heuristic templates
This commit is contained in:
parent
e3da29f62b
commit
76e306bd8a
0
src/ai/__init__.py
Normal file
0
src/ai/__init__.py
Normal file
6
src/ai/heuristics/__init__.py
Normal file
6
src/ai/heuristics/__init__.py
Normal 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"]
|
||||||
7
src/ai/heuristics/bumpiness.py
Normal file
7
src/ai/heuristics/bumpiness.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import numpy as np
|
||||||
|
|
||||||
|
|
||||||
|
def bumpiness(
|
||||||
|
field: np.ndarray[int, np.dtype[np.uint8]],
|
||||||
|
) -> int:
|
||||||
|
pass
|
||||||
5
src/ai/heuristics/height.py
Normal file
5
src/ai/heuristics/height.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import numpy as np
|
||||||
|
|
||||||
|
|
||||||
|
def aggregate_height(field: np.ndarray[int, np.dtype[np.uint8]]) -> int:
|
||||||
|
return 0
|
||||||
7
src/ai/heuristics/holes.py
Normal file
7
src/ai/heuristics/holes.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import numpy as np
|
||||||
|
|
||||||
|
|
||||||
|
def holes(
|
||||||
|
field: np.ndarray[int, np.dtype[np.uint8]],
|
||||||
|
) -> int:
|
||||||
|
return 0
|
||||||
5
src/ai/heuristics/lines.py
Normal file
5
src/ai/heuristics/lines.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import numpy as np
|
||||||
|
|
||||||
|
|
||||||
|
def complete_lines(field: np.ndarray[int, np.dtype[np.uint8]]) -> int:
|
||||||
|
return 0
|
||||||
Loading…
Reference in New Issue
Block a user