Fixed other bug

This commit is contained in:
Vasilis Valatsos 2024-03-07 10:35:09 +02:00
parent 23eed41313
commit feece23330

View file

@ -180,7 +180,7 @@ class Player(pygame.sprite.Sprite):
# nearest_enemy.stats.exp # nearest_enemy.stats.exp
# ]) # ])
for distance, direction, enemy in sorted_distances[:5]: for distance, direction, enemy in sorted_distances[:5]:
self.state_features.extend([ self.state_features.extend([
distance/np.sqrt(np.sum(self.map_edge)), distance/np.sqrt(np.sum(self.map_edge)),