I am trying to draw two grids side by side, each of size 8 by 8. Also these grids have one smaller grid 6 by 6 inside them. I want to do as nicely as possible, with clear border colors. I need major grids to be of light gray color and smaller inner grids to be filled with white color. White color should overlap. Also I need to be able to name cells...
This is what I got so far...
\begin{tikzpicture}[thick,scale=0.7, every node/.style={scale=0.6}]
\path (0,0); % <--- THIS LINE IS ADDED
\begin{scope}[shift={(0mm,0mm)}]
\foreach \xoffset in {0,8}
{
\begin{scope}[shift={(\xoffset,0)}]
\draw[xstep=1,ystep=1] (0,0) grid (8,8);
\end{scope}
}
\end{scope}
\path (0,0); % <--- THIS LINE IS ADDED
\begin{scope}[shift={(10mm,10mm)}]
\foreach \xoffset in {0,8}
{
\begin{scope}[shift={(\xoffset,0)}]
\draw[xstep=1,ystep=1, white] (0,0) grid (6,6);
\end{scope}
}
\end{scope}
\end{tikzpicture}
Cannot figure out how to fill cells with color (inner square must be white, outside square light gray, inner square color should overlap), also not sure how to add labels..
Thanks for help!