I'm trying to write a program similar to a celular automata, but simpler. I'm new to programming, so I'm having trouble with simple problems. My initial program is a grid with 99x99 cells. The cells are gradually filled with squares from the center(49x49) to the corners at random positions, like a central pixel that grows and forms random shapes.
I would like to know a way to test if a cell or its neighbours are already filled with a square, can someone help me?
It's like you said, I used those numbers to fit my window dimensions. I Don't have any programming skills, so it's a little difficult to me to understand what can be better. I'm not used to think with logical expressions and numbers, only with shapes and colors. But I'm trying!