Changed defaults
This commit is contained in:
parent
db407b0819
commit
d92758c4fd
@ -135,7 +135,7 @@ class Reward(Entity):
|
|||||||
self.col = (0, 255, 0)
|
self.col = (0, 255, 0)
|
||||||
self.avaible = True
|
self.avaible = True
|
||||||
self.enforce_not_on_barrier = False
|
self.enforce_not_on_barrier = False
|
||||||
self.reward = 1
|
self.reward = 10
|
||||||
|
|
||||||
def on_collision(self, other):
|
def on_collision(self, other):
|
||||||
if isinstance(other, Agent):
|
if isinstance(other, Agent):
|
||||||
@ -155,7 +155,7 @@ class Reward(Entity):
|
|||||||
class OnceReward(Reward):
|
class OnceReward(Reward):
|
||||||
def __init__(self, env):
|
def __init__(self, env):
|
||||||
super(OnceReward, self).__init__(env)
|
super(OnceReward, self).__init__(env)
|
||||||
self.reward = 100
|
self.reward = 500
|
||||||
|
|
||||||
def on_collect(self):
|
def on_collect(self):
|
||||||
self.env.new_abs_reward += self.reward
|
self.env.new_abs_reward += self.reward
|
||||||
|
Loading…
Reference in New Issue
Block a user