mirror of
https://github.com/kristoferssolo/Tetris.git
synced 2025-10-21 20:00:35 +00:00
tests(ai): set setUp for heuristics
This commit is contained in:
parent
822dd60bc1
commit
e4720c779d
17
tests/ai/test_heuristics.py
Normal file
17
tests/ai/test_heuristics.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import unittest
|
||||||
|
|
||||||
|
import numpy as np
|
||||||
|
|
||||||
|
|
||||||
|
class TestHeuristics(unittest.TestCase):
|
||||||
|
def setUp(self) -> None:
|
||||||
|
self.field = np.array(
|
||||||
|
[
|
||||||
|
[0, 0, 0, 0, 1, 1, 0, 0, 0, 0],
|
||||||
|
[0, 1, 1, 1, 1, 1, 1, 0, 0, 1],
|
||||||
|
[0, 1, 1, 0, 1, 1, 1, 1, 1, 1],
|
||||||
|
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
|
||||||
|
[1, 1, 1, 0, 1, 1, 1, 1, 1, 1],
|
||||||
|
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
|
||||||
|
]
|
||||||
|
)
|
||||||
@ -1,6 +0,0 @@
|
|||||||
import unittest
|
|
||||||
|
|
||||||
|
|
||||||
class TestBlank(unittest.TestCase):
|
|
||||||
def test(self) -> None:
|
|
||||||
pass
|
|
||||||
Loading…
Reference in New Issue
Block a user