A game I created for my first project with General Assembly, based on Conway's game of life
https://jacksonherron.github.io/Game-of-Life/
- Javascript
- JQuery
- HTML
- CSS
- User arrives at the web page, where the rules and empty game board are loaded.
- User selects squares on the game board by clicking them. Selecting a square changes the color.
- When start button is clicked, the game begins moving through generations: 4 per second for 25 seconds. For each generation (from Wikipedia - Conway's Game of Life) a. Any live cell with fewer than two live neighbors dies, as if by under population. b. Any live cell with two or three live neighbors lives on to the next generation. c. Any live cell with more than three live neighbors dies, as if by overpopulation. d. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.
- The number of generations and count of births and deaths are displayed at the bottom of the board.
- As long as the game board continues changing between generations, the game continues. if the user makes it to 100 generations they win and this is displayed in a win screen along with the number of births and deaths. If the game board stops changing between generations a loss screen is displayed. Both screen offer the option to play again, which resets the game board.
Backgorund image will be from http://www.cellimagelibrary.org/images/38959
Licensed under a Creative Commons Attribution, Non-Commercial, No Derivatives License.