Giter VIP home page Giter VIP logo

cellular-automaton's Introduction

⚠️ Project archived, checkout Gracidea

Cellular automaton

This library contains a complex cellular automaton which simulates a complete ecosystem, including universe, fauna and flora. It has no special purpose except the pleasure of watching it.

Image of cellular automaton

Features

  • Deterministic simulation of life based on PRNG
  • A complete procedurally generated universe
    • 15 differents biomes
    • Day and night cycles
    • Weather
  • Flora simulation
    • Berry trees growth and harvests
    • Delicious berries with multiple effects
  • Fauna simulation
    • Predators and preys system
    • Huge genome statistics
    • Unique behavior, only the smartest creatures will survive !
    • Reproduction

Nota Bene : This is a project under development, features listed above may not be implemented yet.

Getting Started

First of all, you'll need to include the library :

    <script src="./bin/lowlight.automaton.js"></script>

You may include the minified library instead :

    <script src="./bin/lowlight.automaton.min.js"></script>

Then you may create alias for convenience :

    let Life = Lowlight.CellularAutomation.Life

Dependancies

This library requires the following libraries :

These are already included in demo/js folder.

Usage

Just include the following html structure :

    <div class="app">
        <div class="app-view"></div>
        <button type="button" id="cellular-automaton-start-button"></button>
    </div>

Then, as it's a cellular automaton the only thing you can do is watching it evoling :)

Project content

/bin Live and dev scrripts files
/src Source files
/demo Demo and codes examples
/docs Documentation

Rebuild project and expanding the library

You'll need to run the following command the first time to install dependencies.

npm install

Then to rebuild project, just run the following command :

npm run build

This will update /bin files with included /src files. Although package.json (which contains "source" and "output" paths) are preconfigured, you may need to reconfigure them if you're planning to expand this library.

To include a file just use the following syntax in the "source" file :

    /* #include <path/to/file.js> */

Although package.json (which contains "jsdoc_source", "jsdoc_output", "jsdoc_config" and "jsdoc_readme") and docs/categories.json are preconfigured, you may need to reconfigure them if you're planning to expand this library.

License

This project is licensed under the MIT License.

See LICENSE.md file for details.

cellular-automaton's People

Contributors

lowlighter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.