Compare commits
No commits in common. "22406420c217432d6df05b19c1400cb19eee1915" and "8bb5c3edfcd4b8fbc45d2bafd63bcd1d4042d2d8" have entirely different histories.
22406420c2
...
8bb5c3edfc
@ -85,7 +85,7 @@ class SimulationEngine:
|
||||
y = random.randint(-half_height // 2, half_height // 2)
|
||||
world.add_object(FoodObject(Position(x=x, y=y)))
|
||||
|
||||
for _ in range(350):
|
||||
for _ in range(300):
|
||||
new_cell = DefaultCell(
|
||||
Position(x=random.randint(-half_width // 2, half_width // 2), y=random.randint(-half_height // 2, half_height // 2)),
|
||||
Rotation(angle=0)
|
||||
|
||||
@ -350,7 +350,7 @@ class DefaultCell(BaseEntity):
|
||||
|
||||
movement_cost = abs(output_data["angular_acceleration"]) + abs(output_data["linear_acceleration"])
|
||||
|
||||
self.energy -= (self.behavioral_model.neural_network.network_cost * 0.1) + 1 + (0.2 * movement_cost)
|
||||
self.energy -= (self.behavioral_model.neural_network.network_cost * 0.15) + 1 + (0.3 * movement_cost)
|
||||
|
||||
return self
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user