Skip to content
New issue

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

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

Already on GitHub? # to your account

The serializer error occurs when the example of werewolf exits error #1688

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Terrdi
Copy link

@Terrdi Terrdi commented Feb 11, 2025

In the example of werewolf, when the model call fails, it will try to serialize the Weregame (inherited from Team) class into Json and save it, but the BasePlayer::special_actions list may contain the Action class, causing the serialization to fail.

Features
Add custom serialization fields to the Team class.

… serialize the Weregame (inherited from Team) class into Json and save it, but the BasePlayer::special_actions list may contain the Action class, causing the serialization to fail. Add custom serialization fields to the Team class.
The json contains a field total_cost which is `numpy.int64` and cannot be serialized by json.
@Terrdi Terrdi changed the base branch from werewolf_game to main February 19, 2025 07:06
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant