Git Product home page Git Product logo

algorithmics's Introduction

Simulation algorithms

To run simulation, install vite globally (yarn global add vite) and run vite command inside the simulation directory.

Boids

Boids simulates the flocking behaviour of birds. It relies on three rules:

  • separation: steer to avoid crowding local flockmates
  • alignment: steer towards the average heading of local flockmates
  • cohesion: steer to move towards the average position (center of mass) of local flockmates

Source: https://en.wikipedia.org/wiki/Boids

Conway's Game of Life

Conway's Game of Life is a cellular automaton. It consists in a two-dimensional grid containing cells. Each cell is either alive or dead. It relies on four rules:

  • birth: a dead cell emerges if it has more at least 2 alive neighbours
  • death by overpopulation: a living cell dies by overpopulation if it has more than 3 alive neighbours
  • death by underpopulation: a living cell dies by underpopulation if it has less than 2 alive neighbours
  • statu quo: every other cell stays in its previous state

Source: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life

algorithmics's People

Contributors

saramorillon 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.