GithubHelp home page GithubHelp logo

cellularautomata-1's Introduction

Cellular automata in a lion-antelope world

The file CellularAutomata.py implements the basic requirements as stipulated in the project requirements.
Lions and antelopes live in a grid and interact with each other and their environment as specified by the rules.

When the program stars the user is asked for parameters for the grid:
Size, rows by colomns
Ratio of empty space to lions to antelopes
The number of generations that should pass, by default the generations pass indefinately until interrupted.
When it finishes it prints some info and stops.

Features:
The user can choose between running with or with the features in the checkbox.
The file GenerationFeat.py implements some features I was playing around with.
It contains a menu for choosing whether you want to view the next generation of the one you just finished,
also whether you want to continue with that grid, and for starting a new one.
The antelopes now also have random deaths, and more likely than lions.
Also the lions can rove around now, if they are overcrowded and there a space nearby, they move to it.

Recording and file compression:
The user states whether he wants to record by the checkbox on the window.
When the simulation is finished the user can replay the recording by pressing the button.


cellularautomata-1's People

Contributors

nvernooy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.