GithubHelp home page GithubHelp logo

game_of_life's Introduction

Conway's Game of Life

C++ object oriented implementation of Conway's Game of Life for Basic Data Structure classes.

Conway's Game of Life is a cellular automaton that is actually a simulator. The evolution is determined only by its initial state and no other input is required.

Rules

The board of the Game of Life is an infinite two-dimensional grid of square "cells", that each one has two possibles states, dead or alive. Every cell must interact with its neighbours, the cells that are horizontally, vertically or diagonally adjacent. At each turn, these rules are applied.

  1. Any live cell with fewer than two live neighbours dies, as if caused by underpopulation.
  2. Any live cell with two of three live neighbours lives on to the next generation.
  3. Any live cell with more than three live neighbours dies as if by overpopulation.
  4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
  5. All the births and deaths must happen at the same time. Therefore, cells that are dying can help others to born, but can't previne other cells death by overpopulation; using the same logic, cells that are borning won't preserve or kill living cells at past generation.
Authors: Max William Souto Filgueira and Emanuel Costa Betcel

Usage

If you want to simply play Conway's game of life then do:

make project && ./game inputfile.dat

Otherwise if you want to compile the game with all its documentation do:

make 

If you are only interested in the documentation you can generate it with :

make docs

or simply:

doxygen Doxyfile

game_of_life's People

Contributors

ebetcel avatar maxwillf 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.