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

[Question] Implementing multiple actions per turn #1233

Open
a-ws-m opened this issue Oct 6, 2024 · 1 comment
Open

[Question] Implementing multiple actions per turn #1233

a-ws-m opened this issue Oct 6, 2024 · 1 comment
Labels
question Further information is requested

Comments

@a-ws-m
Copy link

a-ws-m commented Oct 6, 2024

Question

I'm trying to implement an API for a card game where each turn has two phases: a drawing phase and then a playing phase. The agent can choose from multiple cards to draw and then can choose a card to play from the resulting hand. One option during the draw phase is to take from a face-down pile, so there may be new observations after the first phase of the turn. Is it possible to implement this kind of a game using Petting Zoo?
I imagine it might be necessary to treat each player as two agents: one responsible for drawing and the other responsible for then playing cards. That seems to be the easiest way to create two different action masks. Of course, in that case the two agents ought to share a reward function, which I'm not sure how to implement.

@a-ws-m a-ws-m added the question Further information is requested label Oct 6, 2024
@a-ws-m
Copy link
Author

a-ws-m commented Oct 7, 2024

I'm going with two agents per player, with the first one handling the drawing phase and the second one handling the playing phase. Sharing the reward function seems simple enough. Do let me know if there's a better approach to this please :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant