Changeset 1090


Ignore:
Timestamp:
02/20/21 13:34:03 (4 years ago)
Author:
Maciej Komosinski
Message:

Cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/FramsticksLib.py

    r1087 r1090  
    1313        You can even design and use in evolution your own genetic representation implemented entirely in python,
    1414        or access and control the simulation and simulated creatures step by step.
     15
     16        Should you want to modify or extend this class, first see and test the examples in frams-test.py.
    1517
    1618        You need to provide one or two parameters when you run this class: the path to Framsticks where .dll/.so resides
     
    6971                frams.Simulator.init()
    7072                frams.Simulator.start()
    71                 step = frams.Simulator.step  # cache reference to avoid repeated lookup in the loop
     73                step = frams.Simulator.step  # cache reference to avoid repeated lookup in the loop (just for performance)
    7274                while frams.Simulator.running._int():  # standard-eval.expdef sets running to 0 when the evaluation is complete
    7375                        step()
Note: See TracChangeset for help on using the changeset viewer.