Пример #1
0
 def make_py_observer(self, iig_obs_type=None, params=None):
     """Returns an object used for observing game state."""
     if ((iig_obs_type is None) or
         (iig_obs_type.public_info and not iig_obs_type.perfect_recall)):
         return BoardObserver(params)
     else:
         return IIGObserverForPublicInfoGame(iig_obs_type, params)
Пример #2
0
 def make_py_observer(self, iig_obs_type=None, params=None):
   """Returns a NetworkObserver object used for observing game state."""
   if ((iig_obs_type is None) or
       (iig_obs_type.public_info and not iig_obs_type.perfect_recall)):
     return NetworkObserver(self.num_players(), self.max_game_length())
   return IIGObserverForPublicInfoGame(iig_obs_type, params)