Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
August 18, 2022 10:56 am GMT

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.

Image description

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:

  1. Any live cell with fewer than two live neighbours dies, as if by underpopulation.
  2. Any live cell with two or three live neighbours lives on to the next generation.
  3. Any live cell with more than three live neighbours dies, as if by overpopulation.
  4. 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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To