Giter VIP home page Giter VIP logo

game_of_life's Introduction

Game_of_Life

Why I made this

I was inspired by my Cognitive Science course to simulate the Game of Life because I found it very intresting how the inital conditions of the simulation avalanched into a final condition which was complex and hard to predict. The most intresting thing about the Game of Life is that the rules that govern the simulation are very simple, yet we can still produce these complicated and chaotic final conditions. I found this to be analogous to the evolution of mankind and how the very first organism emerged from the simple "primodridal soup" of early Earth.

Here are some cool Game of Life designs I found while working on this project:

About the Game of Life

To set up the Game of Life we have a grid that has some squares filled in (“alive”) and some blank squares (“dead”). In this game each square can have up to eight neighbours that are all within its reach and based on the number of neighbours it has, we come up with two rules that govern the whole simulation:

  1. If a square has exactly 3 neighbours then on the next generation that square will be “alive”.
  2. A square must have at least 2 but no more than 3 neighbours or it will die of “isolation” or “overcrowding” respectfully.

How to run it:

All you need to do is locally host the index.html file located in the /GameOfLife/ folder (or just open it in a web browser). If you want to check the code that powers it just check out the sketch.js file in that same folder.

Final Product:

Game of Life

game_of_life's People

Contributors

jyaacoub 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.