Specifically for NestedTTT, we provide a list of legal actions to the agent and expect them to pick and return one of these.
NestedTTT.take_action received an update to make sure a move was in the legal_positions set to avoid allowing things like placement on a completed gameboard, it should also have a check to make sure the agent is taking actions only for itself.
The updates:
get_legal_actions should have agent_id as a parameter and translate this to a move instead of just assuming the current agent_id
take_action should match the move in the provided action with the move of the current agent_id in its legal check
Specifically for NestedTTT, we provide a list of legal actions to the agent and expect them to pick and return one of these.
NestedTTT.take_action received an update to make sure a move was in the legal_positions set to avoid allowing things like placement on a completed gameboard, it should also have a check to make sure the agent is taking actions only for itself.
The updates: