News from this site

 Rental advertising space, please contact the webmaster if you need cooperation


+focus
focused

classification  

no classification

tag  

no tag

date  

2024-11(3)

Python realizes the game of life-python mini game source code download

posted on 2021-04-27 02:32   Download points(5)   Download nums(0)

download

  • What is the game of life

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



Category of website: Download > python video tutorial

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.

0 0
collect article
collected

Comment content: (supports up to 255 characters)