diff --git a/core/simulation_engine.py b/core/simulation_engine.py index 3439434..06e0034 100644 --- a/core/simulation_engine.py +++ b/core/simulation_engine.py @@ -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(300): + for _ in range(350): 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) diff --git a/world/objects.py b/world/objects.py index 82670c3..f1c315c 100644 --- a/world/objects.py +++ b/world/objects.py @@ -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.15) + 1 + (0.3 * movement_cost) + self.energy -= (self.behavioral_model.neural_network.network_cost * 0.15) + 1 + (0.2 * movement_cost) return self