コード例 #1
0
    def play(self, display):
        
        #GameEnvironment.game(display, npc, self)
        #print '1'

        GameEnvironment.game(display, npc.npc1(20,20), self)
        """
コード例 #2
0
 def getFitness(self, display):
     
     self.fitness = 0
     #print '1'
     self.fitness += GameEnvironment.game(display, npc.npc1(20,20), self)
     
     #print '2'
     self.fitness += GameEnvironment.game(display, npc.npc2(20,20), self)
     #print '3'
     self.fitness += GameEnvironment.game(display, npc.npc3(20,20), self)
     #print '4'
     self.fitness += GameEnvironment.game(display, npc.npc4(20,20), self)
     #print '5'
     self.fitness += GameEnvironment.game(display, npc.npc5(20,20), self)
     #print '6'
     self.fitness += GameEnvironment.game(display, npc.npc6(20,20), self)
     self.fitness = self.fitness/6