Previous Thread This week's challenge: Conway's Game of Life
Your goal is to create a Conway's Game of Life simulator using the language of your choice. The basic rules are as follows:
The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, live or dead. Every cell interacts with its eight neighbours, which are the cells that are directly horizontally, vertically, or diagonally adjacent. At each step in time, the following transitions occur:
> Any live cell with fewer than two live neighbours dies, (underpopulation). > Any live cell with two or three live neighbours lives on to the next generation. > Any live cell with more than three live neighbours dies (overpopulation). > Any dead cell with exactly three live neighbours becomes a live cell (reproduction).
The initial pattern is the seed. The rules are then applied to every single cell in the seed simultaneously. The rules continue to be applied to create further generations.
Post results / bits of code
Tips: >If you find the task too simple, you're encouraged to try different variations and figure out ways to make the problem more challenging. >These threads are still in their early stages, if you have any ideas for how these threads should work in the future or for new challenges, feel free to contribute in this thread
no you don't need to use the colors from the original image, you can use random colors of colors from another image,
Gavin Green
Question: when people are saying 'iterations', do you mean successful color guesses, both successful and unsuccessful ones?
Jason Walker
successful and unsuccessful
Grayson Jones
retard question, is there a library already in the standard c/c++ libraries that can produce graphical outputs? how difficult is it to write your own? should i just use SDL?
Daniel Reed
using colors from the cga palette image
Ian Thompson
this is completely random colors, 10M iterations
Jose Hernandez
non-random colors, larger lines, 10M
Alexander Howard
nice.
Wyatt Powell
...
Chase Martinez
That's very interesting. Here's 10M for me.
The grey background looks extremely nice on yours, but the girl, and light parts look like there has been very little attention put to them, compared to mine, where the reverse is true.
I wonder if this is because in my program each color used in original picture has an equal chance to be used, and in yours you just pick a pixel at random from original picture and use its color, so colors that are more used have more chances of appearing.
Aaron Stewart
makes sense. yes i choose a completely random color from source, they are not unique
Christian Davis
using costanza colors
Colton Perez
more iterations makes it a little better, 20M
Logan Wright
50M
Tyler Gray
250m
Dominic Scott
UP
Cooper Wilson
I'm bored, give me some ideas what to write
Jaxon Martinez
Only drawing diagonal lines, ~30s for 10M tries on an i7, 1m 50s on my shitty chromebook with an 1.8 GHz ARM CPU. No progress output, otherwise it would be much much slower.
John Thompson
write a program that redraws the source image with the colors from a 2nd image pixel by pixel, without drawing shapes/lines