Make fields optional in GameEventPlayer#48
Conversation
|
Thanks @yzoug. Could you also provide an example JSON file in |
When describing a bot, everything is empty except the AI level field.
The GameFull struct is slightly different for a game between humans and when playing against an AI, we hence change the game_full json to game_full_humans, and add game_full_ai describing a game against an AI.
2118903 to
a5165bf
Compare
|
Hello @ion232, I've added a more global test with the response GameFull against an AI (this is where it was blocking for me, since the GameEventPlayer couldn't be deserialized when receiving GameFull against an AI). I renamed the originally tested GameFull to |
|
Looks good 👍 |
|
Thanks! The problem is that for a player, the Here's an example: It's late where I am, but I'll look into this tomorrow to fix. I don't really see how though for now, but I'll try to find an answer. |
When describing a bot, everything is empty except the AI level field.