mikemorcerf / conway-game-of-life-stimulusjs

Play Conway's Game of Life and summon meteors to decimate a population of square colorful cells

Home Page:https://stimulus-game-of-life.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

conway game of life gif

Conway's Game of Life built with Stimulus js

Author Languages Stars Forks

Play Conway's Game of Life and summon meteors to decimate a population of square colorful cells

πŸ“Œ Table of Contents

πŸ”§ Technologies

πŸš€ Features

  • Pick cells to be dead or alive
  • See how cells survive throughout the generations
  • Create a population of cells with the press of a button
  • Destroy all cells with the press of a button

πŸ‘· Installation and Getting Started

# Clone this repository
$ git clone https://github.com/mikemorcerf/conway-game-of-life-stimulusjs

# Go into the repository
$ cd conway-game-of-life-stimulusjs

# Install dependencies
$ yarn install

# Start the server
$ yarn dev:server

# Open http://localhost:9000/

🐾 How to Use

Working Online Demo

Play Conway's Game of Life on your browser using StimulusJS.

  • Click or tap any dead cell on the board to turn it alive
  • Click or tap any live cell on the board to kill it
  • Press the πŸ¦–πŸ¦• button to generate a random population of size 100
  • Press the β˜„οΈπŸ”₯ button to destroy all live cells
  • Press the β–ΆοΈŽ button to start the passing of generations
  • You cannot interact with the game while the generations are passing
  • Press the β—ΌοΈŽ button to stop the passing of generations
  • You may change the speed in which generations pass by changing the value in the "seconds per cycle" entry

πŸ› Issues

Feel free to file a new issue with a respective title and description on the Conway's Game of Life repository. If you already found a solution to your problem, I would love to review your pull request!

πŸ“• License

Released in 2020. This project is under the MIT license.

Made with β™₯ by Michael de Morcerf e Moura :bowtie: Say hi!

About

Play Conway's Game of Life and summon meteors to decimate a population of square colorful cells

https://stimulus-game-of-life.herokuapp.com/

License:MIT License


Languages

Language:JavaScript 65.2%Language:HTML 21.2%Language:CSS 13.6%