Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a method add_agents() to all multiagents domain + fix paper-rock-scissors multiagent domain #283

Merged
merged 4 commits into from
Nov 30, 2023

Conversation

nhuet
Copy link
Contributor

@nhuet nhuet commented Nov 24, 2023

  • add_agents() is supposed to exist by mahd solver and mirrors rllib api (add_agent_ids())
  • paper-rock-scissors _state_step() was not returning a dictionary in TransitionOutcome.termination
  • paper-rock-scissors main script was not tested => moved into tests

This is required for instance by mahd solver.
It mirrors ray.rllib API (which has get_agent_ids() in their
multiagent environments)
Copy link
Collaborator

@neo-alex neo-alex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just added very minor remarks, the rest is OK to merge for me.

# single agent domain
domain = MyDomain()

# up-casted as multi-agent domain
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that the past/passive form of cast is "cast" (not "casted)

domain = MyDomain()

# up-casted as multi-agent domain
domainupcasted = MyDomain()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... so maybe upcast_domain instead (cf. previous comment)?

Copy link
Collaborator

@neo-alex neo-alex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good for me, thanks!

@neo-alex neo-alex merged commit a7b2792 into airbus:master Nov 30, 2023
41 checks passed
@nhuet nhuet deleted the multiagent branch December 12, 2023 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants