Giter Club home page Giter Club logo

biham_ca_derivatives's Introduction

Biham CA Derivatives

Several self-organizing cellular automatons inspired by the Biham-Middleton-Levin Traffic Model

All in processing

I wrote an implementation of the Biham-Middleton-Levine traffic model cellular automaton in Processing, and then made several modifications to make it different:

  • biham_middleton_levine - original implementation
  • biham_fail - early version that would always jam up for some reason
  • biham_diagonal - experiment to make the cells move diagonally
  • biham_4direction - 4 different colors that move in all 4 directions... not super interesting

Then I wondered if a similar rule could be applied to two colors going in opposite directions. If they hit eachother, one cell moves off to the side. I decided to call this rule the "Hallway traffic model", and it is self-organizing because the cells naturally migrate to their respective sides of the hallway. The left and right sides are connected in a loop, but the top and bottom are not.

  • hallway_traffic_CA - original, not very interesting
  • hallway_traffic_CA_2 - slightly better, still not very interesting
  • hallway_traffic_CA_3 - the best, creates interesting jams and organizes the fastest
  • hallway_4direction - yet again, 4 directional movement. not very interesting
  • hallway_4direction_2 - cells can move to both sides and creates very interesting jams

The controls for all programs are the same:

  • space - random fill with the current precentage
  • - - slows down the simulation
  • = - speeds up the simulation
  • [ - increases fill precentage
  • ] - decreases fill precentage

All programs lisences under GNU GPL v2

biham_ca_derivatives's People

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.