An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
August 18, 2022 10:56 am GMT
Original Link: https://dev.to/shiahalan/project-five-python-conways-game-of-life-557n
Project Five (Python): Conway's Game of Life
Why?
Hello, this is my fifth posted project. This project was created with the intention of exposing myself to Python, Stack Overflow, GitHub BASH, and Pygame.
How
This project uses Pygame to create an interactable GIU. The cells in the Game of Life follow a specific ruleset that determines whether they spawn, die, or continue living.
Conclusion
I hope you enjoy this part of my learning journey.
GitHub
Background on Conway's Game of Life
Conway's Game of Life is a cellular automaton originally created by John Conway in 1970. The game is a zero-player game where cells interact with each other by abiding to four rules. Thus, the outcome of the game is predetermined by the initial configuration of what cells are alive and dead.
Rules of the game:
- Any live cell with fewer than two live neighbours dies, as if by underpopulation.
- Any live cell with two or three live neighbours lives on to the next generation.
- Any live cell with more than three live neighbours dies, as if by overpopulation.
- Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
Advice?
Advice is greatly appreciated (post in comment section).
Original Link: https://dev.to/shiahalan/project-five-python-conways-game-of-life-557n
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To