tried making the glider work

This commit is contained in:
timeo 2024-05-26 14:28:51 +02:00
parent 5663bc5030
commit be88fc0918
1 changed files with 2 additions and 1 deletions

View File

@ -129,10 +129,11 @@ public class Simulator extends Thread {
} }
} }
world = newWorld; world = newWorld;
ArrayList<Agent> newAgents = new ArrayList<>();
for(Agent agent : agents) { for(Agent agent : agents) {
ArrayList<Agent> neighbors = ArrayList<Agent> neighbors =
this.getNeighboringAnimals( this.getNeighboringAnimals(