Fix bug
This commit is contained in:
parent
32bff8b5c5
commit
23eed41313
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ class Player(pygame.sprite.Sprite):
|
||||||
if hasattr(self, 'state_features'):
|
if hasattr(self, 'state_features'):
|
||||||
self.old_state_features = self.state_features
|
self.old_state_features = self.state_features
|
||||||
|
|
||||||
self.reward = self.stats.exp
|
self.reward = self.stats.exp\
|
||||||
+ self.stats.health/self.stats.stats['health'] - 1
|
+ self.stats.health/self.stats.stats['health'] - 1
|
||||||
# - nearest_dist/np.sqrt(np.sum(self.map_edge))
|
# - nearest_dist/np.sqrt(np.sum(self.map_edge))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue