Example #1
0
 def __init__(self):
     BaseStrategy.__init__(self, "QStrategy")
     try:
         f=open('dico.pkl','rb')
         self.qlearn=cPickle.load(f)
         f.close()
     except IOError:
         self.qlearn=None
Example #2
0
	def __init__(self,state,id_team,id_player):
	        AS.__init__(self,"PassStrategy")
	        self.state=state
		self.id_team=id_team
		self.id_player=id_player
		if id_team==1:
		    self._autre=2
		elif id_team==2:
		    self._autre=1
		self.moi=self.config=state.player(id_team,id_player)
		self.ma_position=self.moi.position
		self.ma_vitesse=self.moi.vitesse
		self.can_shoot=0
Example #3
0
 def __init__(self,id_team,id_player,state,clever):
     AS.__init__(self,"goal_one_to_one")
     self.va_au_goal=1
     self.id_team=id_team
     self.id_player=id_player
     self.player=0
     if id_team==1:
         self.goal=GOAL1
         self.sens=T2_SENS
         self.autre=2
     elif id_team==2:
         self.goal=GOAL2
         self.sens=T2_SENS
         self.autre=1
     self.clever=clever
     self.config=state.player(id_team,id_player)
     self.state=state
     self.ball=state.ball.position
     self.goal_zone=self.goal + V2D(ZONE_GOAL*self.sens,0)
     self.autre_player=state.player(self.autre,self.player)
Example #4
0
 def __init__(self, id_team, id_player, state, clever):
     AS.__init__(self, "goal_one_to_one")
     self.va_au_goal = 1
     self.id_team = id_team
     self.id_player = id_player
     self.player = 0
     if id_team == 1:
         self.goal = GOAL1
         self.sens = T2_SENS
         self.autre = 2
     elif id_team == 2:
         self.goal = GOAL2
         self.sens = T2_SENS
         self.autre = 1
     self.clever = clever
     self.config = state.player(id_team, id_player)
     self.state = state
     self.ball = state.ball.position
     self.goal_zone = self.goal + V2D(ZONE_GOAL * self.sens, 0)
     self.autre_player = state.player(self.autre, self.player)
Example #5
0
 def __init__(self,state):
     AS.__init__(self,"goal_one_to_one")
     self.state=state
Example #6
0
 def __init__(self):
     AS.__init__(self, "Gardiola")
     self._bl = False
Example #7
0
 def __init__(self, comportement, name):
     BaseStrategy.__init__(self, name)
     self.comportement = comportement
Example #8
0
 def __init__(self,decideur):
     BaseStrategy.__init__(self,decideur.__name__)
     self.decideur = decideur
Example #9
0
 def __init__(self):
     BaseStrategy.__init__(self, "Gardien")
Example #10
0
 def __init__(self):
    BaseStrategy.__init__(self, "Drible")
Example #11
0
	def __init__(self):
		BaseStrategy.__init__(self, "Renvoyeur")
Example #12
0
 def __init__(self):
     BaseStrategy.__init__(self, "Aleatoire")
Example #13
0
	def __init__(self):
		BaseStrategy.__init__(self, "Polyvalent")
Example #14
0
 def __init__(self):
     BaseStrategy.__init__(self,"QuickFollow")
Example #15
0
 def __init__(self):
     BaseStrategy.__init__(self,"QuickCatch2v2")
Example #16
0
 def __init__(self,state):
     AS.__init__(self,"forceur_one_to_one")
     self.state=state
 def __init__(self,tree,dic,gen_feat):
     BaseStrategy.__init__(self,"Tree Strategy")
     self.dic = dic
     self.tree = tree
     self.gen_feat= gen_feat
Example #18
0
 def __init__(self):
    BaseStrategy.__init__(self, "Foncer")
Example #19
0
 def __init__(self):
     BaseStrategy.__init__(self,"Fonceur")
Example #20
0
 def __init__(self):
    BaseStrategy.__init__(self, "Passe")
Example #21
0
 def __init__(self):
     AS.__init__(self, "forceur_one_to_one")
Example #22
0
 def __init__(self):
     BaseStrategy.__init__(self, "Random")
Example #23
0
 def __init__(self):
     BaseStrategy.__init__(self, "OnevOne")
     self.shoot=0
Example #24
0
 def __init__(self,id=0):
     AS.__init__(self,"illumination")
     self.id=id
Example #25
0
	def __init__(self):
        	BaseStrategy.__init__(self, "Aleatoire")
Example #26
0
 def __init__(self):
     BaseStrategy.__init__(self,"MilieuStrategy")
Example #27
0
 def __init__(self):
    BaseStrategy.__init__(self, "")
Example #28
0
 def __init__(self):
     BaseStrategy.__init__(self,"GoalStrategy")
Example #29
0
 def __init__(self,comportement):
     BaseStrategy.__init__(self,comportement.__name__)
     self.comportement = comportement
Example #30
0
 def __init__(self):
     AS.__init__(self, "Gardiola")
Example #31
0
 def __init__(self):
     BaseStrategy.__init__(self,"Campeur")
Example #32
0
 def __init__(self):
     AS.__init__(self, 'Mourinho')
     self.tri = 0
     self.coi = 0
Example #33
0
 def __init__(self):
     BaseStrategy.__init__(self,"Utilitaire")
Example #34
0
 def __init__(self):
     AS.__init__(self,"ia") 
Example #35
0
 def __init__(self,fichier):
    BaseStrategy.__init__(self,"Monte_Carlo")
    #on initialise L'IA avec le dictionnaire stoquer dans dico_apprentissage
    self.dico = ouvre_dico(fichier)
Example #36
0
 def __init__(self,name="ma strategie"):
                  BaseStrategy.__init__(self,name)
Example #37
0
 def __init__(self, decid):
     BaseStrategy.__init__(self,decid.__name__)
     self.decideur = decid
     self.info = dict()
Example #38
0
 def __init__(self):
    BaseStrategy.__init__(self, "Marquer")
Example #39
0
 def __init__(self, sous_strat):
     BaseStrategy.__init__(self, sous_strat.__name__)
     self.strat = sous_strat
Example #40
0
 def __init__(self):
    BaseStrategy.__init__(self, "DefenseD")
Example #41
0
 def __init__(self, comportement):
     BaseStrategy.__init__(self, comportement.__name__)
     self.comportement = comportement
Example #42
0
 def __init__(self):
    BaseStrategy.__init__(self, "Random")
Example #43
0
 def __init__(self, id=0):
     AS.__init__(self, "illumijnation")
     self.id = id
Example #44
0
 def __init__(self, tree, dic, gen_feat):
     BaseStrategy.__init__(self, "Tree Strategy")
     self.dic = dic
     self.tree = tree
     self.gen_feat = gen_feat
Example #45
0
 def __init__(self, state):
     AS.__init__(self, "goal_one_to_one")
     self.state = state
Example #46
0
	def __init__(self):
		BaseStrategy.__init__(self,"Defenseur")
Example #47
0
 def __init__(self):
     AS.__init__(self, "ia")
Example #48
0
 def __init__(self):
     AS.__init__(self, "Fonceur")
Example #49
0
 def __init__(self, state):
     AS.__init__(self, "forceur_one_to_one")
     self.state = state
Example #50
0
 def __init__(self, decid):
     BaseStrategy.__init__(self, decid.__name__)
     self.decideur = decid
     self.info = dict()
Example #51
0
 def __init__(self,comportement,name):
     BaseStrategy.__init__(self,name)
     self.comportement = comportement