Giter Club home page Giter Club logo

conways-gol's Introduction

Conways-GoL

A simple, static website version of Conway's Game of Life.

See it in action here: https://conway.github.dizware.dev

Originally written along side a Pluralsight video and left to decay over time.

The current code has basically been rewritten, but was first given to ChatGPT to convert from the old ES5 way that the code was originally written, to be in more modern Javascript. From there, lots a tweeks went in to making the game nice and pretty.

What is Conway's Game of Life?

Veratassium Explanation of Conway's Game of Life:

Math's Fundamental Flaw

Functionality Available

  • Resizable Grid where cells can be set to set up a starting point
    • Grid is not bounded, so when the game exits any edge of the grid, it will wrap onto the other side of the screen
  • Autoplay functionality, including the ability to toggle on and off. Autoplay includes a Start/Stop
  • Speed slider and iteration display
  • Ability to clear the grid
  • Ability to reset to the last user written state
  • Holding the mouse button down can allow you to paint as many checkboxes
  • Mobile friendly

Advance functionality

  • Holding the CTRL key while you drag in the grid will invert the type of cell you create(Dead/Alive). It can be looked at as a type of erase. Similar functionlity exists on mobile by using multiple fingers.
  • The cell you click first to start your drag will determine the type of cells the drag will create. If you mouse down on a dead cell and drag, all your drag will turn any cells you enter into alive. If you mouse down on a live cell, any cell you enter will die.
  • Game pauses if you begin to draw while the an autoplay has been started. This can allow you to manipulate your simulation in real time, but also prevent the game from interuppting you before you complete your changes.

conways-gol's People

Contributors

dizware avatar

Watchers

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