If color(square[x,y]) != color(template[x,y]) then color(square[x,y]) = color(template[x,y]) else if x < max(x) then x = x+1 else x = min(x) and y = y+1 loop.
Something like this but better, with a lot of bots some of them would keep updating the same square, other would move to change other squares.
If color(square[x,y]) != color(template[x,y]) then color(square[x,y]) = color(template[x,y]) else if x < max(x) then x = x+1 else x = min(x) and y = y+1 loop.
Something like this but better, with a lot of bots some of them would keep updating the same square, other would move to change other squares.