Last active
January 23, 2021 22:04
-
-
Save davidADSP/9731e74b945778e933483b958e7b472d to your computer and use it in GitHub Desktop.
reset wrapper for self-play environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SelfPlayEnv(env): | |
# ... | |
def reset(self): | |
super(SelfPlayEnv, self).reset() | |
self.setup_opponents() | |
if self.current_player_num != self.agent_player_num: | |
self.continue_game() | |
return self.observation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment