示例#1
0
def spawn_trial_bots(num_bots):
        botIDlist = []
        defaultClassifier = get_classifier()
        for x in range(num_bots):
                pythonDbHandler.storeClassifier(defaultClassifier)
        maximum = pythonDbHandler.getLargestBotID()
        for x in range(num_bots):
                botIDlist.append(maximum)
                maximum -= 1
        print 'Initial botIDlist: ', botIDlist
        return botIDlist
示例#2
0
def spawn_trial_bots(num_bots):
    botIDlist = []
    defaultClassifier = get_classifier()
    for x in range(num_bots):
        pythonDbHandler.storeClassifier(defaultClassifier)
    maximum = pythonDbHandler.getLargestBotID()
    for x in range(num_bots):
        botIDlist.append(maximum)
        maximum -= 1
    print 'Initial botIDlist: ', botIDlist
    return botIDlist
示例#3
0
文件: mycmd.py 项目: wildertm/jytwai
 def shutdown(self):
     print 'SHUTTING DOWN AND STORING'
     if self.botID:
         pythonDbHandler.storeClassifier(self.classifier, self.botID)
示例#4
0
 def shutdown(self):
     """Use this function to teardown your bot after the game is over, or perform an
     analysis of the data accumulated during the game."""
     print 'SHUTTING DOWN AND STORING'
     pythonDbHandler.storeClassifier(self.actionClassifier, self.botID)
示例#5
0
 def shutdown(self):
     """Use this function to teardown your bot after the game is over, or perform an
     analysis of the data accumulated during the game."""
     print 'SHUTTING DOWN AND STORING'
     pythonDbHandler.storeClassifier(self.actionClassifier, self.botID)
示例#6
0
文件: mycmd.py 项目: wildertm/jytwai
 def shutdown(self):
     print 'SHUTTING DOWN AND STORING'
     if self.botID:
         pythonDbHandler.storeClassifier(self.classifier, self.botID)
示例#7
0
 def replace_pop1_with_pop2(self, offspring):
     for bot_id, classifier in offspring:
         pythonDbHandler.storeClassifier(classifier, botID = bot_id)
示例#8
0
 def replace_pop1_with_pop2(self, offspring):
     for bot_id, classifier in offspring:
         pythonDbHandler.storeClassifier(classifier, botID=bot_id)