DEV Community 👩‍💻👨‍💻

shiahalan
shiahalan

Posted on

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 GUI. 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).

Oldest comments (0)

Let's team up together 🤝

We're Hiring

We're hiring for a Senior Full Stack Engineer to join the DEV team. Want the deets? Head here to learn more about who we're looking for.