GithubHelp home page GithubHelp logo

game-of-life's Introduction

Game-Of-Life

This is a simulation of the Game of Life created by John H. Conway. This is a simulation of the Game of Life created by John H. Conway he simulation runs on a two-dimensional array. Each cell in the array is in one of two states: occupied by a creature or empty. In this assignment we will populate the initial grid by reading data from a text file. Once the initial grid has been created, the program loops. Each iteration of the loop represents a tick or time step (in other words, a new generation) in the environment. Cells interact with their (usually) eight neighbors. Neighbors are the cells that are horizontally, vertically, or diagonally adjacent. Creatures are created and die based on the following rules:

  1. Any living creature (occupied cell) with fewer than two live neighbors dies of loneliness.
  2. Any living creature with two or three live neighbors lives on to the next generation.
  3. Any living creature with more than three live neighbors dies of overcrowding.
  4. Any empty cell with exactly three live neighbors becomes an occupied cell. This represents a birth. PS: All births and deaths in each tick occur simultaneously

game-of-life's People

Contributors

ari-bernardo 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.