I want to use
tikzpicture to draw a uniform grid as illustrated in below. The grid size in the figure is
8×8. I want to be able to define a parameter that gives me the ability to draw grids with different sizes, for example,
32×32. Could someone help me how I should do it?