Skip to content

Lotka-Volterra model, also known as prey predator model implemented with bacteria as prey and creepers as predators.

Notifications You must be signed in to change notification settings

KacperMatusiewicz/artificial-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Artificial Life

Lotka-Volterra model also known as prey-predator model implement with bacteria as prey and creepers as predators.

Example

public class Main {
    public static void main(String[] args) {
        ArtificialLifeParameters parameters = new ArtificialLifeParameters(
                233,    // creepers initial amount
                300,   // bacteria initial amount
                4,     // creeper energy required for multiplication
                15,    // creepers initial energy
                16,    // creeper required energy reserve
                11,    // creeper max number of births in one tact
                16,    // creeper max number of bacteria eaten in one tact
                0.6029521347370408,    // bacteria multiplication rate
                0.40283479642322084    // bacteria spread rate

        );
        World world = new World(
                10,     // world size
                1000000,// critical bacteria limit
                10000,  // critical creeper limit
                0       // seed
        );
        ArtificialLife artificialLife = new ArtificialLife(
                parameters,
                world,
                100     // number of tacts
        );
        ArtificialLifeStatistics statistics = artificialLife.simulate();
    }
}

About

Lotka-Volterra model, also known as prey predator model implemented with bacteria as prey and creepers as predators.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages