Log In  

Cart #my_conway_life-0 | 2022-04-15 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
6

I wanted to try my hand at coding Conway's Game of Life, and here it is! It is HORRIBLY optimized (turns out operating on 60x60 squares and copying an array every frame takes some computational power) and there's definitely a lot of room for improvement performance wise, but as a novice programmer I'm pretty happy with it.

Press (O) to pause/unpause the simulation. (You might need to hold the button to get it to unpause: again, this thing runs slow.) While paused, you can place/delete cells by moving the on-screen cursor with the arrow keys and pressing (X). The settings menu (Enter) has a couple of options:

  • Randomize - randomize every cell on the screen
  • Clear - clears :)
  • Glider Gun - loads in a glider gun, an arrangement of cells that produces small "gliders" that travel across the screen diagonally
P#110269 2022-04-15 02:11


[Please log in to post a comment]