This is a simulation of John Conway's Game of Life. The game is comprised of a grid of pixels. If a pixel is black it is considered "on", and if a pixel is white it is considered off. The rules for whether or not a pixel is on or off during any given tick follow: If a cell is on, it will stay on if three of its neighbors (diagonal or orthogonal) are also on, and if it is off, it will turn on if two or three of its neighbors are also on. Otherwise, it will turn off. The person "playing" the game simply turns on pixels at the start and watches it unfold. I am tired and have homework to do, so if you want to make anything other than what is on screen, you will have to code it in yourself. Press space to spawn in a glider (a collection of pixels that will "glide" across the screen)
Credits to John Conway for making the Game of Life. also the pixels will loop around the grid like a corkscrew so you might not want to make things that move too far sorry for the lag