class_docstr: 2-player environment with "player_0" and "player_1", playing the 007 game.
  Each player state has:
  - a number of ammunition (init: 0)
  - a number of consecutive protection (init: 0)
  Each player can:
  - reload: to get one more ammunition
  - fire: to try to kill the other player (reloads instead if no ammunition)
  - protect: to avoid the other player's fire
  
  The winner is either:
  - the first to fire while the other people is reloading (or firing without ammunition)
  - the one that did not protect more that 4 times consecutively if the other one did.
  The game stops if nobody won after 100 iterations.
class_docstr_tok: ["2-player","environment","with","``","player_0","''","and","``","player_1","''",",","playing","the","007","game",".","Each","player","state","has",":","-","a","number","of","ammunition","(","init",":","0",")","-","a","number","of","consecutive","protection","(","init",":","0",")","Each","player","can",":","-","reload",":","to","get","one","more","ammunition","-","fire",":","to","try","to","kill","the","other","player","(","reloads","instead","if","no","ammunition",")","-","protect",":","to","avoid","the","other","player","'s","fire","The","winner","is","either",":","-","the","first","to","fire","while","the","other","people","is","reloading","(","or","firing","without","ammunition",")","-","the","one","that","did","not","protect","more","that","4","times","consecutively","if","the","other","one","did",".","The","game","stops","if","nobody","won","after","100","iterations","."]
docstr: Resets the env and returns observations from ready agents.
  Returns:
      obs (dict): New observations for each ready agent.
docstr_tok: ["Resets","the","env","and","returns","observations","from","ready","agents",".","Returns",":","obs","(","dict",")",":","New","observations","for","each","ready","agent","."]
code: def reset(self) -> tp.Dict[str, np.ndarray]:
      """Resets the env and returns observations from ready agents.
      Returns:
          obs (dict): New observations for each ready agent.
      """
      self._step = 0
      self.players = [JamesBond(), JamesBond()]
      return self._make_observations()
  
file_path: nevergrad/nevergrad/functions/rl/envs.py
imports: import typing
  import numpy
  import gym
  from .None import base
label_desc: Use image node_id 2 for calling the DoubleOSeven obj's underlying member method code with example usage: obj.reset() and returns: self