Exemplo n.º 1
0
 def test_idle(self):
     idle = Idle(self.game_state, self.a_player)
     expected_command = AICommand(
         self.a_player,
         AICommandType.STOP,
         control_loop_type=AIControlLoopType.POSITION)
     actual_command = Idle.exec(idle)
     self.assertEqual(actual_command, expected_command)
Exemplo n.º 2
0
 def test_idle(self):
     self.idle = Idle(self.game_state, self.player_id)
     current_pose = None
     current_pose_string = AICommand(self.player_id, AICommandType.STOP)
     self.assertEqual(Idle.exec(self.idle), current_pose_string)
Exemplo n.º 3
0
 def test_idle(self):
     self.idle = Idle(self.game_state, self.player_id)
     current_pose = None
     current_pose_string = "AICommand(move_destination=" + str(
         current_pose) + ", kick_strength=0)"
     self.assertEqual(str(Idle.exec(self.idle)), current_pose_string)
Exemplo n.º 4
0
 def test_idle(self):
     self.idle = Idle(self.game_state, self.player_id)
     current_pose = None
     current_pose_string = AICommand(self.player_id, AICommandType.STOP)
     self.assertEqual(Idle.exec(self.idle), current_pose_string)