karinemiras / evoman_framework

53 stars 173 forks source link

Inconsistency in multimode with the documentation #30

Open AlecsFerra opened 1 year ago

AlecsFerra commented 1 year ago

From the documentation: " play(self, pcont=None, econt=None): executes a game run using the solu- tions given as ’pcont’(player) and ’econt’(enemy) for the controllers. When using the default controllers these parameters are not necessary, as agents will take random actions. When in single objective mode, it returns: fitness, player life, enemy life, and game run time, in this order as single values. When in multi objective mode, it returns: fitness, player life, enemy life, and game run time, in this order as 4 lists containing values of each game (lists are ordered by the order of enemies parameter provided)."

But actually in multimode is returning the mean - std of the player life, enemy life and time instead of the arrays

https://github.com/karinemiras/evoman_framework/blob/8408b71caeeaf54e31606abe203120c203069833/evoman/environment.py#L608

AlecsFerra commented 1 year ago

I have opened a PR with the fix