SIMPLE icon indicating copy to clipboard operation
SIMPLE copied to clipboard

Feature request : allow variable player number on a game/env

Open zorgluf opened this issue 4 years ago • 2 comments

Hi ! It would be nice to be able to choose the number of players for a game, although I don't master the impact on the training loop (one model per number of players ?). Is there any other limitation to implement this feature ? Thanks for your answer and for all the work done.

zorgluf avatar May 10 '21 21:05 zorgluf

Yes agreed - it's tricky as usually the model input shape is dependent on the number of players (e.g. 4 player sushi go requires the agent to keep track of 4 different hands, so a larger input shape than for the 3 player game). Therefore, it's currently not possible to utilise a model trained for a 3 player game for a 4 player game, and therefore they may as well be completely separate games in the folder.

I'm open to ideas as to how a n_player agnostic agent would work - totally agree it would be a cool feature!

davidADSP avatar May 11 '21 20:05 davidADSP

Wouldn't it be sufficient to always assume the max player count? Then you have the shape for 4-player sushi go and if you actually play with only 3 players, you zero out the extra players.

aamonkeyA avatar Oct 01 '22 17:10 aamonkeyA