Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def gameSpec(self=0, enemy=1, swap=False):
players = [self, enemy]
if swap:
players.reverse()
return [
('players', ArrayConv(playerConv, players)),
('stage', DiscreteConv(32)),
]