Skip to content

IQbrod/Evolyfe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :)

About

Life simulation with Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages