You are browsing as a guest. Sign up (or log in) to start making projects!

Conway's Game Of Life

  • 2 Devlogs
  • 2 Total hours

A simple, python based game of life simulator to experiment with the Game of Life invented by John Conway.

Open comments for this post

1h 2m 53s logged

Game of Life #2

IT WORKS!!

Got the actual updating system working. Right now, you can click to toggle a pixel and press spacebar to move forward one generation. Funny side effect: if you hold space, it actually simulates really quickly which looks super cool. Unfortunately, this doesn’t work at higher resolutions, so I’ll have to fix that.

I’ve had a great time playing around with making random stuff and it seems to be a true representation of the Game of Life!

One problem: The way I calculate each of the edges means it doesn’t act like an infinite grid, and if something touches the edge it will act unpredictably. Something for future me to fix!

Next steps:

  • Make it resizeable (scroll wheel?)
  • Make it not lag
  • Fix edge rendering
0

Loading discussion…

0
3
Open comments for this post

1h 14m 51s logged

Game of Life #1

Got a simple window working with Tkinter in python with click detection. Pretty rudimentary, but baby steps, ammirite?

I built it to also keep track of all the pixel states using a 2d array called “states” (genius naming, ik right?) that way I can make the actual algorithm easy

Things to do next:

  • Make actual game loop (start on spacebar?)
  • Make it detect when I click and drag
  • Make the window resizeable.
0

Loading discussion…

0
1

Followers

Loading…