Giter Site home page Giter Site logo

gameoflife's Introduction

Build Status

Rules

Conway's Game of Life environment consists of a matrix of cells. Cell can be in an active state or in inactive state. Every iteration (game loop step) is checking how many active neighbours particular cell has, and based on the number of neighbours it either activates or deactives itself. The rules are:

  • Any live cell with less than 2 live neighbours dies, as if caused by underpopulation.
  • Any live cell with more than 3 live neighbours dies, as if by overcrowding.
  • Any live cell with 2 or 3 live neighbours lives on to the next generation.
  • Any dead cell with exactly 3 live neighbours becomes a live cell.

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

Point

None really, just needed something to try out karma and keep myself interested

TODO

  • Create a visual way to set the root board
  • Create a visual way to display the output

DROPPED

  • Make inheritance/prototype schema; mainly because I don't feel like I would keep interest long enough to make enough extensions and board game types that would make up for sacrificing the clean private variables that I would need to expose to actually make extendible base game. For this particular one I think I'll stay with the rectangular board and simple game of life.

gameoflife's People

Contributors

snikon avatar

Watchers

James Cloos avatar  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.