From d2db9a5bf7ef7b45a776b4af8f87655a16ee959b Mon Sep 17 00:00:00 2001 From: Xuankang Lin Date: Sun, 13 Nov 2022 18:05:49 -0800 Subject: [PATCH] fix: remove a potential typo/duplication --- mjx/agents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mjx/agents.py b/mjx/agents.py index 42401913..a3affab9 100644 --- a/mjx/agents.py +++ b/mjx/agents.py @@ -92,7 +92,7 @@ def act(self, observation: Observation) -> Action: steal_actions = [ a for a in legal_actions - if a.type() in [ActionType.CHI, ActionType.PON, ActionType, ActionType.OPEN_KAN] + if a.type() in [ActionType.CHI, ActionType.PON, ActionType.OPEN_KAN] ] if len(steal_actions) >= 1: return random.choice(steal_actions)