예제 #1
0
 def __init__(self, isRed, first="offense", second="defense", rest="offense"):
     AgentFactory.__init__(self, isRed)
     # self.agents = [first, second]
     # -- change to all offensive agents since I haven't worked on the defensive yet
     self.agents = ["offense", "offense"]
     self.rest = rest
     self.isRed = isRed
예제 #2
0
  def __init__(self, isRed, first='offense', second='defense', rest='offense'):
    AgentFactory.__init__(self, isRed)
    self.isRed = isRed
    self.agents = [first, second]
    self.rest = rest

    self.iModel = inferenceModule()
예제 #3
0
 def __init__(self,
              isRed,
              first='offense',
              second='defense',
              rest='offense'):
     AgentFactory.__init__(self, isRed)
     self.agents = [first, second]
     self.rest = rest
예제 #4
0
    def __init__(self,
                 isRed,
                 first='offense',
                 second='defense',
                 rest='offense'):
        AgentFactory.__init__(self, isRed)
        self.isRed = isRed
        self.agents = [first, second]
        self.rest = rest

        self.iModel = inferenceModule()
예제 #5
0
 def __init__(self, isRed, first='offense', second='defense', rest='offense', **args):
   AgentFactory.__init__(self, isRed)
   self.agents = [first, second]
   self.rest = rest
   self.debug = int(args['debug']) if args.has_key('debug') else 0 
   self.maxPlys = int(args['maxPlys']) if args.has_key('maxPlys') else -1
   self.maxTime = float(args['maxTime']) if args.has_key('maxTime') else 0.9
   self.lastMoveCount = int(args['lastMoveCount']) if args.has_key('lastMoveCount') else 5
   self.nonIterative = args.has_key('nonIterative')
   self.epsilon = args['epsilon'] if args.has_key('epsilon') else 0.0
   self.gamma = args['gamma'] if args.has_key('gamma') else 0.0
   self.alpha = args['alpha'] if args.has_key('alpha') else 0.0
예제 #6
0
	def __init__(self, isRed, **kwArgs):
		AgentFactory.__init__(self, isRed)
		print "factory __init__ called"

		#for emergency timeout prevention
		self.totalRuntime = 0
		self.nRuntimeSamples = 0
		self.emergencyScale = 1

		self.args = kwArgs
		self.agents = {}
		
		#this lists which MSBAgentRoles we'll assign to new agents
		self.availableRoles = util.Queue()
		if not self.args["offenseOnly"]:
			self.availableRoles.push(MSBDefensiveAgentRole)
		self.availableRoles.push(MSBOffensiveAgentRole)
		
		self.initializeForNewGame()
예제 #7
0
 def __init__(self,
              isRed,
              first='offense',
              second='defense',
              third='offense',
              rest='offense',
              **args):
     AgentFactory.__init__(self, isRed)
     self.agents = [first, second, third]
     self.rest = rest
     self.debug = int(args['debug']) if args.has_key('debug') else 0
     self.maxPlys = int(args['maxPlys']) if args.has_key('maxPlys') else -1
     self.maxTime = float(
         args['maxTime']) if args.has_key('maxTime') else 0.9
     self.lastMoveCount = int(
         args['lastMoveCount']) if args.has_key('lastMoveCount') else 5
     self.nonIterative = args.has_key('nonIterative')
     self.epsilon = args['epsilon'] if args.has_key('epsilon') else 0.0
     self.gamma = args['gamma'] if args.has_key('gamma') else 0.0
     self.alpha = args['alpha'] if args.has_key('alpha') else 0.0
예제 #8
0
 def __init__(self, **args):
   AgentFactory.__init__(self, **args)
예제 #9
0
 def __init__(self, isRed, first='goal', second='goal', third='goal', rest='offense', **args):
   AgentFactory.__init__(self, isRed)
   self.agents = [first, second, third]
   self.teamData = TeamData() 
예제 #10
0
 def __init__(self, isRed):
   AgentFactory.__init__(self, isRed)        
   self.agentList = ['attacker', 'defender']
예제 #11
0
 def __init__(self, **args):
   AgentFactory.__init__(self, **args)
   self.inferenceModule = InferenceModule()
예제 #12
0
 def __init__(self, **args):
     AgentFactory.__init__(self, **args)
     self.offense = False
예제 #13
0
 def __init__(self, **args):
     AgentFactory.__init__(self, **args)
예제 #14
0
 def __init__(self, isRed, first='offense', second='offense', rest='offense'):
   AgentFactory.__init__(self, isRed)
   self.agents = [first, second]
   self.rest = rest
예제 #15
0
파일: qAgents.py 프로젝트: rioleo/Team-Radr
 def __init__(self, isRed, alpha=0.1, epsilon=0.9):
   AgentFactory.__init__(self, isRed)
   self.alpha = alpha
   self.epsilon = epsilon
예제 #16
0
 def __init__(self, isRed, first="offense", second="defense", third="offense", rest="offense", **args):
     AgentFactory.__init__(self, isRed)
     self.agents = [first, second, third]
     self.rest = rest
예제 #17
0
 def __init__(self, isRed):
     AgentFactory.__int__(self, isRed)
     self.agentList = ['MultiPurposeAgent', 'DefenseAgent']
예제 #18
0
 def __init__(self, isRed):
     AgentFactory.__init__(self, isRed)
     self.agents = ['upAgent', 'downAgent']
예제 #19
0
 def __init__(self, isRed, first='offense', second='defense', rest='offense'):
   AgentFactory.__init__(self, isRed)
   self.agentIndex = 0
   self.numAgents = 0 # need to change
   self.agents = {}
   self.queue = [first, second]
예제 #20
0
 def __init__(self, **args):
   AgentFactory.__init__(self, **args)
   self.offense = False
예제 #21
0
 def __init__(self, isRed):
     AgentFactory.__init__(self, isRed)
     self.agentsCreated = 0
예제 #22
0
 def __init__(self, isRed, first='offense', second='defense', third='offense', rest='offense', **args):
   AgentFactory.__init__(self, isRed)
   self.agents = [first, second, third]
   self.rest = rest
예제 #23
0
 def __init__(self, isRed):
     AgentFactory.__init__(self, isRed)