Update Best Battle Snake Logic
Build and Push Docker Container / build-and-push (push) Successful in 1m21s

This commit is contained in:
2026-04-04 20:50:01 +02:00
parent 6c68f412d2
commit 79f23b8be6
2 changed files with 20 additions and 3 deletions
+2 -2
View File
@@ -905,7 +905,7 @@ class TestBestBattleSnake(unittest.TestCase):
enemy_can_grow_cache={"enemy": True},
)
self.assertNotIn((0, 1), blocked)
self.assertIn((0, 1), blocked)
def test_enemy_attack_map_allows_enemy_tail_move_when_enemy_can_grow(self):
snake = BestBattleSnake()
@@ -948,7 +948,7 @@ class TestBestBattleSnake(unittest.TestCase):
enemy_can_grow_cache={"enemy": True},
)
self.assertEqual(attack_map.get((2, 3)), 4)
self.assertIsNone(attack_map.get((2, 3)))
def test_future_planning_prefers_non_trap_path(self):
snake = BestBattleSnake()