Git Product home page Git Product logo

cellular-automata's Introduction

Cellular Automata

NOTE: This is not clean code.

Information:

Cellular Automata is a model studied in automata theory. A cellular automaton consists of a grid of cells with a finite number of states (in this case, on or off). For each increase in time (in any unit definied), the cells around a particular cell will determine its state.

In this cellular automata program, users are given the option to...

  • change the size of the board
  • change what amount of neighbors determine if a cell will be turned off, on, or persist
  • change what amount of time causes the board to update
  • change visiual settings
  • plot on the board or highlight and selected cells to turn them off or on

Conway's Game of Life Rules (Default Settings):

  • Any live cell with fewer than two live neighbours die
  • Any live cell with two or three live neighbours progresses on to the next generation
  • Any live cell with more than three live neighbours dies
  • Any dead cell with exactly three live neighbours becomes alive

Implementation

The program is split into three different classes. The Cell class contains key information like its state and the amount of neighbors around it. The Board class handles key operations between cells. The GameOfLife class handles the UI aspects of the model as well as listeners to register information

This is written in Java, using awt and swing.

cellular-automata's People

Contributors

barkouch avatar smailbarkouch 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.