# game_of_life **Repository Path**: kerwinzxc/game_of_life ## Basic Information - **Project Name**: game_of_life - **Description**: 基于JSXGraph动画库实现的生命游戏在线演示网站 playgameoflife.live - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://playgameoflife.live - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2022-01-18 - **Last Updated**: 2022-01-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Game of Life - English Document | [中文文档](./README_zh-CN.md) 🎉 JSXGraph Conference 2020 [Slide](https://www.lesliewong.cn/gameoflife/gameoflife.pdf) & [Video](https://www.youtube.com/watch?v=ajKIaTlEuz4) 🎉 ## Algorithm Description The Game of Life is a cellular automata devised by the mathematician John Horton Conway from Cambridge University. It came to become well-known for the article published at Scientific American in 1970. Rules of the Game of Life: The universe of the Game of Life is an infinite, two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, alive and dead, (or populated and unpopulated, respectively). Every cell interacts with its eight neighbors, which are the cells that are horizontally, vertically, or diagonally adjacent. At each step in time, the following transitions occur: 1. For a box with a live cell: - There existing fewer than two live neighbors, the cell dies, due to isolation. - There existing more than three live neighbors, the cell dies, due to over-crowding. - There existing two or three live neighbors, the cell lives on to the next generation. 2. For an empty box or a box with a dead cell: - There existing three live neighbors, the box generates a new live cell, as if by reproduction. ## Demand Description 1. Achieve the main logic described above 2. Display the algorithm with a friendly interface 3. Able to set the initial state in advance 4. Able to take control of the animation rate ## Project Architecture ![project architecture](https://i.loli.net/2020/04/19/rjDMonSRZBgJUHz.png) ## Implementation Result Website: [Game of Life | ©Leslie Wong (Heroku App)](http://playgameoflife.live) ## Snapshots ![gif1](https://i.loli.net/2020/03/29/A2QGYeI1fCc5LNg.gif) --- ![gif2](https://i.loli.net/2020/04/07/ivx5zVUcAtF9YZq.gif) --- ![english1.jpg](https://i.loli.net/2020/02/26/ra496MIGvwdgoRL.jpg) --- ![English2.jpg](https://i.loli.net/2020/02/26/fC9l4WgoOpmeAT5.jpg) --- ![English3.jpg](https://i.loli.net/2020/02/26/RzFCfDMW4jZulPd.jpg)