Skip to content

Simulation program of ALife models accelerated by GPGPU

License

Notifications You must be signed in to change notification settings

asuka1975/alife-gl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alife-gl

Alife-gl provides some multi-agent models accelerated by GPGPU. The available models include CellMove, Lifegame, Gray=Scott and Boids.

Getting Started

You can start to use this program easily. Enter the following commands at a Bash or Windows Powershell:

$ git clone https://github.com/asuka1975/alife-gl.git
$ cd alife-gl
$ pip install -r requirements.txt

Execution

You can choose the model you want to simulate. Open main.py, and change the model class as you can see in below code.

def main():
    # initialize OpenGL

    model: models.Model = models.Boids() # simulate Boids model
    model.setup(window)

    # omitted

             |
             |
             V

def main():
    # initialize OpenGL

    model: model.Model = models.Lifegame() # simulate Lifegame
    model.setup(window)

    # omitted

At a commandline, enter the following command.

$ python main.py

You can see like the image below.

License

See the LICENSE file for licensing information.

About

Simulation program of ALife models accelerated by GPGPU

Topics

Resources

License

Stars

Watchers

Forks

Languages