posted on 2021-04-27 02:32 Download points(5) Download nums(0)
The Game of Life is a cellular automaton invented in 1970 by the British mathematician John Horton Conway. It includes a two-dimensional rectangular world, in which each square inhabits a living or dead cell. The life or death of a cell at the next moment depends on the number of cells alive or dead in the eight adjacent squares. If there are too many living cells in the adjacent square, this cell will die at the next moment due to lack of resources; on the contrary, if there are too few living cells around, this cell will die because of being too lonely.
The rules seem simple, but they can deduce endless content.
Glider: "It" will go one square to the lower right corner every 4 rounds. Although the cell has long been a different cell, it can maintain its original form.
Lightweight spaceship: Its period is 4, and it will go one square to the right every 2 rounds.
Pulsar: It has a period of 3 and looks like a star bursting out periodically.
More complicated patterns.
Come experience the brain and shock of these works:
Epic Game of Life http://www.iqiyi.com/w_19rsq435c9.html
Realize the game of life with the game of life: http://www.bilibili.com/video/av616329/index.html
Author:Theheartoflove
link:http://www.pythonblackhole.com/blog/article/28/087b25dd1bda48807519/
source:python black hole net
Please indicate the source for any form of reprinting. If any infringement is discovered, it will be held legally responsible.
name:
Comment content: (supports up to 255 characters)
Copyright © 2018-2021 python black hole network All Rights Reserved All rights reserved, and all rights reserved.京ICP备18063182号-7
For complaints and reports, and advertising cooperation, please contact vgs_info@163.com or QQ3083709327
Disclaimer: All articles on the website are uploaded by users and are only for readers' learning and communication use, and commercial use is prohibited. If the article involves pornography, reactionary, infringement and other illegal information, please report it to us and we will delete it immediately after verification!