Questions tagged [artificial-life]

Artificial life refers to programs that simulate worlds with one or more living organisms.

Artificial Life simulations usually contain rules for changes to creatures and the environment, such as eating and procreation. They can be used to study or model emergent phenomena in diverse fields such as ecology, genetics, economics and history. However, for many people, watching the evolution of a simulated world is also a source of entertainment.

The textbook example is Conway's Game of Life.

23 questions
2
votes
2 answers

applying a function on an object in python

I wrote an artificial life simulation. each creature is an object of the class "Animal" that i defined, with some properties. I defined a function "reproduce" outside the Animal class: def reproduce(parent): child = Animal() child.brain.w=…
user1767774
  • 1,775
  • 3
  • 24
  • 32
2
votes
1 answer

Ant colony simulation - optimizing the path

I am trying to build a simple ant colony simulation. The world is grid of squares; each one of them can consist of some level of pheromone and any number of ants. There are 2 types of pheromone: food pheromone and nest pheromone. Ants know nothing…
user1767774
  • 1,775
  • 3
  • 24
  • 32
1
vote
3 answers

Best way to program an "Excel-like" network of influence in Ruby?

I have a network of nodes, each node influencing the state of some other nodes (imagine an Excel spreadsheet with cells values depending on other cells through formulas). I'm wondering what is the cleanest way to implement this in Ruby ? Of course I…
Blacksad
  • 14,906
  • 15
  • 70
  • 81
1
vote
1 answer

Artificial life simulator not producing any results

I have been experimenting with evolving artificial creatures, but so far all creatures just die. To initialize the creatures that do not result from asexual reproduction; I create around 8 random neurons which both have a connection in and a…
1
vote
1 answer

Operant conditioning algorithm?

What's the best way to implement real time operant conditioning (supervised reward/punishment-based learning) for an agent? Should I use a neural network (and what type)? Or something else? I want the agent to be able to be trained to follow…
0
votes
1 answer

3D boids escape bounding box, p5js

My genetic 3D boids in p5js keep escaping their bounding box. I must not be doing it correctly, and could use some help. Here is a live sketch. Here is the bounding box code: if (this.position.x < d) { desired = createVector(this.maxspeed,…
0
votes
1 answer

Neural networks with tensorflow in python without training

I am making a very basic artificial life simulation with neural nets controlling the 'creatures'. I have made my own version for my first couple of tries, with limited success. I have decided to use TensorFlow for the time being (or any library can…
Jean Du Plessis
  • 137
  • 1
  • 7
-2
votes
1 answer

How do I input nearest object in an artificial life simulation in the inputs of a neural network?

I just started working on an artificial life simulation (again... I lost the other one) in Python and Pygame using Pybrain, and I'm planning how this is going to work. So far I have an environment with some "food pellets". A food pellet is added…
1
2