Esempio n. 1
0
 def test_decode_action(self):
     env = Env()
     env.init_game()
     legal_actions = env.get_legal_actions()
     for legal_action in legal_actions:
         decoded = env.decode_action(legal_action)
         self.assertLessEqual(decoded, ACTION_LIST[legal_action])
Esempio n. 2
0
 def test_get_legal_actions(self):
     env = Env()
     env.set_agents([RandomAgent(61), RandomAgent(61)])
     env.init_game()
     legal_actions = env.get_legal_actions()
     for legal_action in legal_actions:
         self.assertLessEqual(legal_action, 60)