Esempio n. 1
0
 def __init__(self, x, y, deltaX, deltaY, mass, name, color, fixed=False):
     BasicObject.__init__(self, x, y)
     self.deltaX = deltaX
     self.deltaY = deltaY
     self.mass = mass
     self.fixed = fixed
     self.name = name
     self.color = color
 def __init__(self,worldMap,name,scopeDist,width,height,color):
     BasicObject.__init__(self,worldMap,name,width,height,color)
     self.scopeDist = scopeDist
     # for calculation of q-value
     self.oldState = None
     self.oldAction = None
     # encourage to visit un-explored area
     self.prevPos = []
Esempio n. 3
0
 def __init__(self, worldMap, name, scopeDist, width, height, color):
     BasicObject.__init__(self, worldMap, name, width, height, color)
     self.scopeDist = scopeDist
     # for calculation of q-value
     self.oldState = None
     self.oldAction = None
     # encourage to visit un-explored area
     self.prevPos = []
 def setUp(self):
     self.object = BasicObject(2, 2)
    def __init__(self, worldMap, name, width, height, color):
        BasicObject.__init__(self, worldMap, name, width, height, color)

        #Already initialized at a random position by superclass
        self.reward = 0
    def __init__(self,worldMap,name,width,height,color):
        BasicObject.__init__(self,worldMap,name,width,height,color)       

        #Already initialized at a random position by superclass
        self.reward = 0