Skip to content

Commit

Permalink
fix: fix some minor stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasfremming committed Nov 11, 2024
1 parent d3f9c8d commit cad267b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions agent_parts_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
from src.interface import Button, Interface
from src.agent_parts.limb import Limb
from src.ground import *

from src.agent_parts.vision import Vision
from src.agent_parts.rectangle import Point
from src.agent_parts.creature import Creature

#NOTE_TO_MYSELF: When add limb is clicked it doesn't go away when unpaused
Expand Down Expand Up @@ -108,8 +109,8 @@ def add_motorjoint():
environment = Environment(screen, space)
environment.ground_type = GroundType.BASIC_GROUND


creature = Creature(space)
vision: Vision = Vision(Point(0,0))
creature = Creature(space, vision)

# Add limbs to the creature, placing them above the ground
#limb1 = creature.add_limb(100, 20, (300, 100), mass=1) # Positioned above the ground
Expand Down
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def main():

# Population and creatures
population_size = 5
creatures: list[Creature] = create_creatures(population_size, space)
creature_population: list[Creature] = create_creatures(population_size, space)
creatures = creature_population.copy()
creature_instance: Creature = creatures[0]
population = create_population(population_size, creature_instance)
neat_networks: list[NEATNetwork] = []
Expand Down

0 comments on commit cad267b

Please sign in to comment.