봇 실행 헬퍼를 평가 모듈로 통합

This commit is contained in:
2026-05-06 20:45:14 +09:00
parent 407d592f5e
commit 1843d93df2
4 changed files with 3 additions and 70 deletions
+3 -2
View File
@@ -4,9 +4,9 @@ from coolrl_lost_cities.games.classic.bots import (
LostCitiesBot,
RandomBot,
SafeHeuristicBot,
play_game,
)
from coolrl_lost_cities.games.classic.bots.heuristic import draw_from_discard_action
from coolrl_lost_cities.games.classic.evaluation import play_game_for_evaluation
def test_builtin_bots_implement_lost_cities_bot() -> None:
@@ -15,7 +15,7 @@ def test_builtin_bots_implement_lost_cities_bot() -> None:
def test_safe_heuristic_mirror_match_finishes() -> None:
state = play_game(
state, result = play_game_for_evaluation(
SafeHeuristicBot(),
SafeHeuristicBot(),
LostCitiesConfig(n_colors=3, n_ranks=5, n_handshakes=1, hand_size=5),
@@ -23,6 +23,7 @@ def test_safe_heuristic_mirror_match_finishes() -> None:
max_steps=200,
)
assert state.terminal is True
assert result.timed_out is False
def test_safe_heuristic_opponent_value_ignores_hidden_hand() -> None: