From 76e306bd8a787ef7ecdf99dfdd205a20b21d8bed Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Tue, 9 Jan 2024 20:27:17 +0200 Subject: [PATCH] feat(ai): add heuristic templates --- src/ai/__init__.py | 0 src/ai/heuristics/__init__.py | 6 ++++++ src/ai/heuristics/bumpiness.py | 7 +++++++ src/ai/heuristics/height.py | 5 +++++ src/ai/heuristics/holes.py | 7 +++++++ src/ai/heuristics/lines.py | 5 +++++ 6 files changed, 30 insertions(+) create mode 100644 src/ai/__init__.py create mode 100644 src/ai/heuristics/__init__.py create mode 100644 src/ai/heuristics/bumpiness.py create mode 100644 src/ai/heuristics/height.py create mode 100644 src/ai/heuristics/holes.py create mode 100644 src/ai/heuristics/lines.py diff --git a/src/ai/__init__.py b/src/ai/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/ai/heuristics/__init__.py b/src/ai/heuristics/__init__.py new file mode 100644 index 0000000..31cbfc3 --- /dev/null +++ b/src/ai/heuristics/__init__.py @@ -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"] diff --git a/src/ai/heuristics/bumpiness.py b/src/ai/heuristics/bumpiness.py new file mode 100644 index 0000000..03b4828 --- /dev/null +++ b/src/ai/heuristics/bumpiness.py @@ -0,0 +1,7 @@ +import numpy as np + + +def bumpiness( + field: np.ndarray[int, np.dtype[np.uint8]], +) -> int: + pass diff --git a/src/ai/heuristics/height.py b/src/ai/heuristics/height.py new file mode 100644 index 0000000..9ee8550 --- /dev/null +++ b/src/ai/heuristics/height.py @@ -0,0 +1,5 @@ +import numpy as np + + +def aggregate_height(field: np.ndarray[int, np.dtype[np.uint8]]) -> int: + return 0 diff --git a/src/ai/heuristics/holes.py b/src/ai/heuristics/holes.py new file mode 100644 index 0000000..0aa01b3 --- /dev/null +++ b/src/ai/heuristics/holes.py @@ -0,0 +1,7 @@ +import numpy as np + + +def holes( + field: np.ndarray[int, np.dtype[np.uint8]], +) -> int: + return 0 diff --git a/src/ai/heuristics/lines.py b/src/ai/heuristics/lines.py new file mode 100644 index 0000000..d1285e7 --- /dev/null +++ b/src/ai/heuristics/lines.py @@ -0,0 +1,5 @@ +import numpy as np + + +def complete_lines(field: np.ndarray[int, np.dtype[np.uint8]]) -> int: + return 0