Engine of the Universe
- async universe.engine.create_ant(ant_type: type, universe: Universe, update_callback: Callable) None[source]
Helper function to create an ant and append it to ants list.
- Parameters:
ant_type (type) – The type of the ant.
universe (Universe) – The universe.
update_callback (Callable) – The callback function to update the frontend.