chessai.agents.dummy
1import chessai.core.action 2import chessai.core.agent 3import chessai.core.gamestate 4 5class DummyAgent(chessai.core.agent.Agent): 6 """ 7 An agent that only takes the None action. 8 At first this may seem useless, but dummy agents can serve several purposes. 9 Like being a stand-in for a future agent, fallback for a failing agent, or a placeholder when running a replay. 10 """ 11 12 def get_action(self, state: chessai.core.gamestate.GameState) -> chessai.core.action.Action: 13 return chessai.core.action.NoneAction()
6class DummyAgent(chessai.core.agent.Agent): 7 """ 8 An agent that only takes the None action. 9 At first this may seem useless, but dummy agents can serve several purposes. 10 Like being a stand-in for a future agent, fallback for a failing agent, or a placeholder when running a replay. 11 """ 12 13 def get_action(self, state: chessai.core.gamestate.GameState) -> chessai.core.action.Action: 14 return chessai.core.action.NoneAction()
An agent that only takes the None action. At first this may seem useless, but dummy agents can serve several purposes. Like being a stand-in for a future agent, fallback for a failing agent, or a placeholder when running a replay.