Skip to content

Latest commit

 

History

History
50 lines (45 loc) · 1.23 KB

README.md

File metadata and controls

50 lines (45 loc) · 1.23 KB

Evolyfe

Quality Gate Status
Life simulation with Python

0. Setup

Install: pip, python3.x, matplotlib

1. Simulate life

Create your specie

sp = Specie("Name",B,R,D)
#B: Spontaneous Birth Rate
#R: Replication Rate
#D: Death Rate

Create your population

pop = Population(sp, N)
#sp: Specie
#N: Number of existing creatures at time 0

Let your population evolve

for _ in range(T):
        pop.progress()
#T: Number of iteration for you population to evolve
#pop: Population

Show the results

app = App()
app.displayPop(pop)
app.mainloop()
#pop: Population to display

#Red Curve: Evolution Prediction
#Black Curve: Evolution of your Population

1.1 Compare to the average

app = App()
app.displayPop(pop, Q)
app.mainloop()
#Q: Number of population to get an average curve

#Green Curve: Average of the N populations with same specie and same existing creatures at time 0

1.2 Understand

To Be Continued :)