Squares filling grid
in
Programming Questions
•
1 year ago
hey guys!
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?
Thanks! o/
Thanks! o/
1