Skip to content

Commit a7c4413

Browse files
committed
Add local import for SamplePlayerAgent to avoid circular import in decision-making logic
1 parent 172b078 commit a7c4413

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/decision_makers/play_on_decision_maker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ def __init__(self):
2222
pass
2323

2424
def make_decision(self, agent: IAgent):
25+
from src.sample_player_agent import SamplePlayerAgent # Local import to avoid circular import
26+
assert isinstance(agent, SamplePlayerAgent)
2527
if agent.wm.self.is_kickable:
2628
self.kick_decision_maker.make_decision(agent)
2729
else:

0 commit comments

Comments
 (0)