I want to search color pattern on the grid like this.
I can not paint cell under the following conditions
・two consecutive horizonal rows
・3 or more consective vertical rows
when I can choose cell to paint, I choose randamly.
Any suggestions or hints will be greatful!
thanks in advance