Skip to content

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
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.

1 participant