为了绘制科罗拉多游戏的进度,我使用了以下代码这个帖子。
我注意到,在底部网格绘图中,最后 9 个最右上方的方块没有显示网格轮廓!
为了解决这个问题,我添加了以下代码。
\pic[] at (7*\sqw,6*\sqw) {square};
\pic[] at (7*\sqw,5*\sqw) {square};
\pic[] at (7*\sqw,4*\sqw) {square};
\pic[] at (8*\sqw,6*\sqw) {square};
\pic[] at (8*\sqw,5*\sqw) {square};
\pic[] at (8*\sqw,4*\sqw) {square};
\pic[] at (9*\sqw,6*\sqw) {square};
\pic[] at (9*\sqw,5*\sqw) {square};
\pic[] at (9*\sqw,4*\sqw) {square};
我的代码有什么问题?我该如何修复它!
\documentclass[12pt,a4paper]{article}
\usepackage{geometry}
\geometry{a4paper, left=10mm, right=10mm, top=8mm, bottom=15mm}
\usepackage{verbatim}
\usepackage{tikz}
\usetikzlibrary{calc,shapes}
\begin{document}
%begin defining shapes ==========================
\pgfmathsetmacro{\lwdth}{.5mm}% for line width
\tikzset{%
trg/.style={%
regular polygon, regular polygon sides=3, draw=black, line width=\lwdth, fill=blue, minimum size=1.4cm, rounded corners=0.1cm},
crc/.style={%
circle, draw=black, line width=\lwdth, fill=green!70!black, minimum size=1.cm},
sqr/.style={%
regular polygon, regular polygon sides=4, draw=black, line width=\lwdth, fill=yellow, minimum size=1.2cm},
str/.style={%
star, star points=6, draw=black, line width=\lwdth, fill=red, minimum size=1.1cm},
filrd/.style={%
fill=red},
filgr/.style={%
fill=green},
filyw/.style={%
fill=yellow},
filbl/.style={%
fill=blue},
}
%end defining shapes ==========================
%begin defining grid ==========================
\newcommand\sqw{1}
\tikzset{
pics/square/.default={\sqw},
pics/square/.style = {
code = {
\draw[pic actions] (0,0) rectangle (#1,#1);
}}}
\renewcommand\sqw{1.3}
%end defining grid ==========================
\begin{tikzpicture}[scale=0.3, transform shape]
\draw[step=\sqw] (\sqw,\sqw) grid (7*\sqw, 7*\sqw);
%col1
\node[str] at (1.5*\sqw,6.5*\sqw) {};
\node[trg] at (1.5*\sqw,5.4*\sqw) {};
\node[sqr] at (1.5*\sqw,4.5*\sqw) {};
\pic[filrd] at (1*\sqw,3*\sqw) {square};
\pic[filrd] at (1*\sqw,2*\sqw) {square};
\pic[filrd] at (1*\sqw,1*\sqw) {square};
%col2
\node[sqr] at (2.5*\sqw,6.5*\sqw) {};
\node[trg] at (2.5*\sqw,5.4*\sqw) {};
\node[crc] at (2.5*\sqw,4.5*\sqw) {};
\pic[filrd] at (2*\sqw,3*\sqw) {square};
\pic[filrd] at (2*\sqw,2*\sqw) {square};
\pic[filrd] at (2*\sqw,1*\sqw) {square};
%col3
\node[crc] at (3.5*\sqw,6.5*\sqw) {};
\node[str] at (3.5*\sqw,5.5*\sqw) {};
\node[trg] at (3.5*\sqw,4.4*\sqw) {};
\pic[filrd] at (3*\sqw,3*\sqw) {square};
\pic[filrd] at (3*\sqw,2*\sqw) {square};
\pic[filrd] at (3*\sqw,1*\sqw) {square};
%col4
\pic[filyw] at (4*\sqw,6*\sqw) {square};
\pic[filyw] at (4*\sqw,5*\sqw) {square};
\pic[filyw] at (4*\sqw,4*\sqw) {square};
\pic[filbl] at (4*\sqw,3*\sqw) {square};
\pic[filbl] at (4*\sqw,2*\sqw) {square};
\pic[filbl] at (4*\sqw,1*\sqw) {square};
%col5
\pic[filyw] at (5*\sqw,6*\sqw) {square};
\pic[filyw] at (5*\sqw,5*\sqw) {square};
\pic[filyw] at (5*\sqw,4*\sqw) {square};
\pic[filbl] at (5*\sqw,3*\sqw) {square};
\pic[filbl] at (5*\sqw,2*\sqw) {square};
\pic[filbl] at (5*\sqw,1*\sqw) {square};
%col6
\pic[filyw] at (6*\sqw,6*\sqw) {square};
\pic[filyw] at (6*\sqw,5*\sqw) {square};
\pic[filyw] at (6*\sqw,4*\sqw) {square};
\pic[filbl] at (6*\sqw,3*\sqw) {square};
\pic[filbl] at (6*\sqw,2*\sqw) {square};
\pic[filbl] at (6*\sqw,1*\sqw) {square};
%col7
\pic[filbl] at (7*\sqw,6*\sqw) {square};
\pic[filbl] at (7*\sqw,5*\sqw) {square};
\pic[filbl] at (7*\sqw,4*\sqw) {square};
\pic[filyw] at (7*\sqw,3*\sqw) {square};
\pic[filyw] at (7*\sqw,2*\sqw) {square};
\pic[filyw] at (7*\sqw,1*\sqw) {square};
%col8
\pic[filbl] at (8*\sqw,6*\sqw) {square};
\pic[filbl] at (8*\sqw,5*\sqw) {square};
\pic[filbl] at (8*\sqw,4*\sqw) {square};
\pic[filyw] at (8*\sqw,3*\sqw) {square};
\pic[filyw] at (8*\sqw,2*\sqw) {square};
\pic[filyw] at (8*\sqw,1*\sqw) {square};
%col9
\pic[filbl] at (9*\sqw,6*\sqw) {square};
\pic[filbl] at (9*\sqw,5*\sqw) {square};
\pic[filbl] at (9*\sqw,4*\sqw) {square};
\pic[filyw] at (9*\sqw,3*\sqw) {square};
\pic[filyw] at (9*\sqw,2*\sqw) {square};
\pic[filyw] at (9*\sqw,1*\sqw) {square};
\end{tikzpicture}
\vskip .4cm
\begin{tikzpicture}[scale=0.3, transform shape]
\draw[step=\sqw] (\sqw,\sqw) grid (7*\sqw, 7*\sqw);
%col1
\node[str] at (1.5*\sqw,6.5*\sqw) {};
\node[trg] at (1.5*\sqw,5.4*\sqw) {};
\node[sqr] at (1.5*\sqw,4.5*\sqw) {};
\pic[filrd] at (1*\sqw,3*\sqw) {square};
\pic[filrd] at (1*\sqw,2*\sqw) {square};
\pic[filrd] at (1*\sqw,1*\sqw) {square};
%col2
\node[sqr] at (2.5*\sqw,6.5*\sqw) {};
\node[trg] at (2.5*\sqw,5.4*\sqw) {};
\node[crc] at (2.5*\sqw,4.5*\sqw) {};
\pic[filrd] at (2*\sqw,3*\sqw) {square};
\pic[filrd] at (2*\sqw,2*\sqw) {square};
\pic[filrd] at (2*\sqw,1*\sqw) {square};
%col3
\node[crc] at (3.5*\sqw,6.5*\sqw) {};
\node[str] at (3.5*\sqw,5.5*\sqw) {};
\node[trg] at (3.5*\sqw,4.4*\sqw) {};
\pic[filrd] at (3*\sqw,3*\sqw) {square};
\pic[filrd] at (3*\sqw,2*\sqw) {square};
\pic[filrd] at (3*\sqw,1*\sqw) {square};
%col4
\node[crc] at (4.5*\sqw,6.5*\sqw) {};
\node[str] at (4.5*\sqw,5.5*\sqw) {};
\node[trg] at (4.5*\sqw,4.4*\sqw) {};
\pic[filbl] at (4*\sqw,3*\sqw) {square};
\pic[filbl] at (4*\sqw,2*\sqw) {square};
\pic[filbl] at (4*\sqw,1*\sqw) {square};
%col5
\node[crc] at (5.5*\sqw,6.5*\sqw) {};
\node[str] at (5.5*\sqw,5.5*\sqw) {};
\node[str] at (5.5*\sqw,4.5*\sqw) {};
\pic[filbl] at (5*\sqw,3*\sqw) {square};
\pic[filbl] at (5*\sqw,2*\sqw) {square};
\pic[filbl] at (5*\sqw,1*\sqw) {square};
%col6
\node[crc] at (6.5*\sqw,6.5*\sqw) {};
\node[crc] at (6.5*\sqw,5.5*\sqw) {};
\node[crc] at (6.5*\sqw,4.5*\sqw) {};
\pic[filbl] at (6*\sqw,3*\sqw) {square};
\pic[filbl] at (6*\sqw,2*\sqw) {square};
\pic[filbl] at (6*\sqw,1*\sqw) {square};
%col7
\pic[filbl] at (7*\sqw,6*\sqw) {square};
\pic[filbl] at (7*\sqw,5*\sqw) {square};
\pic[filbl] at (7*\sqw,4*\sqw) {square};
\pic[filyw] at (7*\sqw,3*\sqw) {square};
\pic[filyw] at (7*\sqw,2*\sqw) {square};
\pic[filyw] at (7*\sqw,1*\sqw) {square};
%col8
\pic[filbl] at (8*\sqw,6*\sqw) {square};
\pic[filbl] at (8*\sqw,5*\sqw) {square};
\pic[filbl] at (8*\sqw,4*\sqw) {square};
\pic[filyw] at (8*\sqw,3*\sqw) {square};
\pic[filyw] at (8*\sqw,2*\sqw) {square};
\pic[filyw] at (8*\sqw,1*\sqw) {square};
%col9
\pic[filbl] at (9*\sqw,6*\sqw) {square};
\pic[filbl] at (9*\sqw,5*\sqw) {square};
\pic[filbl] at (9*\sqw,4*\sqw) {square};
\pic[filyw] at (9*\sqw,3*\sqw) {square};
\pic[filyw] at (9*\sqw,2*\sqw) {square};
\pic[filyw] at (9*\sqw,1*\sqw) {square};
\end{tikzpicture}
\vskip .4cm
\begin{tikzpicture}[scale=0.3, transform shape]
\draw[step=\sqw] (\sqw,\sqw) grid (7*\sqw, 7*\sqw);
%col1
\node[str] at (1.5*\sqw,6.5*\sqw) {};
\node[trg] at (1.5*\sqw,5.4*\sqw) {};
\node[sqr] at (1.5*\sqw,4.5*\sqw) {};
\pic[filrd] at (1*\sqw,3*\sqw) {square};
\pic[filrd] at (1*\sqw,2*\sqw) {square};
\pic[filrd] at (1*\sqw,1*\sqw) {square};
%col2
\node[sqr] at (2.5*\sqw,6.5*\sqw) {};
\node[trg] at (2.5*\sqw,5.4*\sqw) {};
\node[crc] at (2.5*\sqw,4.5*\sqw) {};
\pic[filrd] at (2*\sqw,3*\sqw) {square};
\pic[filrd] at (2*\sqw,2*\sqw) {square};
\pic[filrd] at (2*\sqw,1*\sqw) {square};
%col3
\node[crc] at (3.5*\sqw,6.5*\sqw) {};
\node[str] at (3.5*\sqw,5.5*\sqw) {};
\node[trg] at (3.5*\sqw,4.4*\sqw) {};
\pic[filrd] at (3*\sqw,3*\sqw) {square};
\pic[filrd] at (3*\sqw,2*\sqw) {square};
\pic[filrd] at (3*\sqw,1*\sqw) {square};
%col4
\node[crc] at (4.5*\sqw,6.5*\sqw) {};
\node[str] at (4.5*\sqw,5.5*\sqw) {};
\node[trg] at (4.5*\sqw,4.4*\sqw) {};
\node[sqr] at (4.5*\sqw,3.5*\sqw) {};
\node[str] at (4.5*\sqw,2.5*\sqw) {};
\node[sqr] at (4.5*\sqw,1.5*\sqw) {};
%col5
\node[crc] at (5.5*\sqw,6.5*\sqw) {};
\node[str] at (5.5*\sqw,5.5*\sqw) {};
\node[str] at (5.5*\sqw,4.5*\sqw) {};
\node[str] at (5.5*\sqw,3.5*\sqw) {};
\node[str] at (5.5*\sqw,2.5*\sqw) {};
\node[str] at (5.5*\sqw,1.5*\sqw) {};
%col6
\node[crc] at (6.5*\sqw,6.5*\sqw) {};
\node[crc] at (6.5*\sqw,5.5*\sqw) {};
\node[crc] at (6.5*\sqw,4.5*\sqw) {};
\node[crc] at (6.5*\sqw,3.5*\sqw) {};
\node[str] at (6.5*\sqw,2.5*\sqw) {};
\node[crc] at (6.5*\sqw,1.5*\sqw) {};
%col7
\pic[filbl] at (7*\sqw,6*\sqw) {square};
\pic[filbl] at (7*\sqw,5*\sqw) {square};
\pic[filbl] at (7*\sqw,4*\sqw) {square};
\pic[filyw] at (7*\sqw,3*\sqw) {square};
\pic[filyw] at (7*\sqw,2*\sqw) {square};
\pic[filyw] at (7*\sqw,1*\sqw) {square};
%col8
\pic[filbl] at (8*\sqw,6*\sqw) {square};
\pic[filbl] at (8*\sqw,5*\sqw) {square};
\pic[filbl] at (8*\sqw,4*\sqw) {square};
\pic[filyw] at (8*\sqw,3*\sqw) {square};
\pic[filyw] at (8*\sqw,2*\sqw) {square};
\pic[filyw] at (8*\sqw,1*\sqw) {square};
%col9
\pic[filbl] at (9*\sqw,6*\sqw) {square};
\pic[filbl] at (9*\sqw,5*\sqw) {square};
\pic[filbl] at (9*\sqw,4*\sqw) {square};
\pic[filyw] at (9*\sqw,3*\sqw) {square};
\pic[filyw] at (9*\sqw,2*\sqw) {square};
\pic[filyw] at (9*\sqw,1*\sqw) {square};
\end{tikzpicture}
\vskip .4cm
\begin{tikzpicture}[scale=0.3, transform shape]
\draw[step=\sqw] (\sqw,\sqw) grid (7*\sqw, 7*\sqw);
%col1
\node[str] at (1.5*\sqw,6.5*\sqw) {};
\node[trg] at (1.5*\sqw,5.4*\sqw) {};
\node[sqr] at (1.5*\sqw,4.5*\sqw) {};
\node[sqr] at (1.5*\sqw,3.5*\sqw) {};
\node[sqr] at (1.5*\sqw,2.5*\sqw) {};
\node[sqr] at (1.5*\sqw,1.5*\sqw) {};
%col2
\node[sqr] at (2.5*\sqw,6.5*\sqw) {};
\node[trg] at (2.5*\sqw,5.4*\sqw) {};
\node[crc] at (2.5*\sqw,4.5*\sqw) {};
\node[crc] at (2.5*\sqw,3.5*\sqw) {};
\node[crc] at (2.5*\sqw,2.5*\sqw) {};
\node[sqr] at (2.5*\sqw,1.5*\sqw) {};
%col3
\node[crc] at (3.5*\sqw,6.5*\sqw) {};
\node[str] at (3.5*\sqw,5.5*\sqw) {};
\node[trg] at (3.5*\sqw,4.4*\sqw) {};
\node[trg] at (3.5*\sqw,3.4*\sqw) {};
\node[crc] at (3.5*\sqw,2.5*\sqw) {};
\node[sqr] at (3.5*\sqw,1.5*\sqw) {};
%col4
\node[crc] at (4.5*\sqw,6.5*\sqw) {};
\node[str] at (4.5*\sqw,5.5*\sqw) {};
\node[trg] at (4.5*\sqw,4.4*\sqw) {};
\node[sqr] at (4.5*\sqw,3.5*\sqw) {};
\node[str] at (4.5*\sqw,2.5*\sqw) {};
\node[sqr] at (4.5*\sqw,1.5*\sqw) {};
%col5
\node[crc] at (5.5*\sqw,6.5*\sqw) {};
\node[str] at (5.5*\sqw,5.5*\sqw) {};
\node[str] at (5.5*\sqw,4.5*\sqw) {};
\node[str] at (5.5*\sqw,3.5*\sqw) {};
\node[str] at (5.5*\sqw,2.5*\sqw) {};
\node[str] at (5.5*\sqw,1.5*\sqw) {};
%col6
\node[crc] at (6.5*\sqw,6.5*\sqw) {};
\node[crc] at (6.5*\sqw,5.5*\sqw) {};
\node[crc] at (6.5*\sqw,4.5*\sqw) {};
\node[crc] at (6.5*\sqw,3.5*\sqw) {};
\node[str] at (6.5*\sqw,2.5*\sqw) {};
\node[crc] at (6.5*\sqw,1.5*\sqw) {};
%col7
\pic[filbl] at (7*\sqw,6*\sqw) {square};
\pic[filbl] at (7*\sqw,5*\sqw) {square};
\pic[filbl] at (7*\sqw,4*\sqw) {square};
\pic[filyw] at (7*\sqw,3*\sqw) {square};
\pic[filyw] at (7*\sqw,2*\sqw) {square};
\pic[filyw] at (7*\sqw,1*\sqw) {square};
%col8
\pic[filbl] at (8*\sqw,6*\sqw) {square};
\pic[filbl] at (8*\sqw,5*\sqw) {square};
\pic[filbl] at (8*\sqw,4*\sqw) {square};
\pic[filyw] at (8*\sqw,3*\sqw) {square};
\pic[filyw] at (8*\sqw,2*\sqw) {square};
\pic[filyw] at (8*\sqw,1*\sqw) {square};
%col9
\pic[filbl] at (9*\sqw,6*\sqw) {square};
\pic[filbl] at (9*\sqw,5*\sqw) {square};
\pic[filbl] at (9*\sqw,4*\sqw) {square};
\pic[filyw] at (9*\sqw,3*\sqw) {square};
\pic[filyw] at (9*\sqw,2*\sqw) {square};
\pic[filyw] at (9*\sqw,1*\sqw) {square};
\end{tikzpicture}
\vskip .4cm
\begin{tikzpicture}[scale=0.3, transform shape]
\draw[step=\sqw] (\sqw,\sqw) grid (7*\sqw, 7*\sqw);
%col1
\node[str] at (1.5*\sqw,6.5*\sqw) {};
\node[trg] at (1.5*\sqw,5.4*\sqw) {};
\node[sqr] at (1.5*\sqw,4.5*\sqw) {};
\node[sqr] at (1.5*\sqw,3.5*\sqw) {};
\node[sqr] at (1.5*\sqw,2.5*\sqw) {};
\node[sqr] at (1.5*\sqw,1.5*\sqw) {};
%col2
\node[sqr] at (2.5*\sqw,6.5*\sqw) {};
\node[trg] at (2.5*\sqw,5.4*\sqw) {};
\node[crc] at (2.5*\sqw,4.5*\sqw) {};
\node[crc] at (2.5*\sqw,3.5*\sqw) {};
\node[crc] at (2.5*\sqw,2.5*\sqw) {};
\node[sqr] at (2.5*\sqw,1.5*\sqw) {};
%col3
\node[crc] at (3.5*\sqw,6.5*\sqw) {};
\node[str] at (3.5*\sqw,5.5*\sqw) {};
\node[trg] at (3.5*\sqw,4.4*\sqw) {};
\node[trg] at (3.5*\sqw,3.4*\sqw) {};
\node[crc] at (3.5*\sqw,2.5*\sqw) {};
\node[sqr] at (3.5*\sqw,1.5*\sqw) {};
%col4
\node[crc] at (4.5*\sqw,6.5*\sqw) {};
\node[str] at (4.5*\sqw,5.5*\sqw) {};
\node[trg] at (4.5*\sqw,4.4*\sqw) {};
\node[sqr] at (4.5*\sqw,3.5*\sqw) {};
\node[str] at (4.5*\sqw,2.5*\sqw) {};
\node[sqr] at (4.5*\sqw,1.5*\sqw) {};
%col5
\node[crc] at (5.5*\sqw,6.5*\sqw) {};
\node[str] at (5.5*\sqw,5.5*\sqw) {};
\node[str] at (5.5*\sqw,4.5*\sqw) {};
\node[str] at (5.5*\sqw,3.5*\sqw) {};
\node[str] at (5.5*\sqw,2.5*\sqw) {};
\node[str] at (5.5*\sqw,1.5*\sqw) {};
%col6
\node[crc] at (6.5*\sqw,6.5*\sqw) {};
\node[crc] at (6.5*\sqw,5.5*\sqw) {};
\node[crc] at (6.5*\sqw,4.5*\sqw) {};
\node[crc] at (6.5*\sqw,3.5*\sqw) {};
\node[str] at (6.5*\sqw,2.5*\sqw) {};
\node[crc] at (6.5*\sqw,1.5*\sqw) {};
%col7
\node[crc] at (7.5*\sqw,6.5*\sqw) {};
\node[crc] at (7.5*\sqw,5.5*\sqw) {};
\node[crc] at (7.5*\sqw,4.5*\sqw) {};
\pic[filyw] at (7*\sqw,3*\sqw) {square};
\pic[filyw] at (7*\sqw,2*\sqw) {square};
\pic[filyw] at (7*\sqw,1*\sqw) {square};
%col8
\node[crc] at (8.5*\sqw,6.5*\sqw) {};
\node[sqr] at (8.5*\sqw,5.5*\sqw) {};
\node[sqr] at (8.5*\sqw,4.5*\sqw) {};
\pic[filyw] at (8*\sqw,3*\sqw) {square};
\pic[filyw] at (8*\sqw,2*\sqw) {square};
\pic[filyw] at (8*\sqw,1*\sqw) {square};
%col9
\node[crc] at (9.5*\sqw,6.5*\sqw) {};
\node[sqr] at (9.5*\sqw,5.5*\sqw) {};
\node[str] at (9.5*\sqw,4.5*\sqw) {};
\pic[filyw] at (9*\sqw,3*\sqw) {square};
\pic[filyw] at (9*\sqw,2*\sqw) {square};
\pic[filyw] at (9*\sqw,1*\sqw) {square};
\end{tikzpicture}
\end{document}
答案1
展开最后一个网格。(实际上,其他网格也一样:彩色的框架方块隐藏了未绘制整个 9x6 网格的事实。)
\begin{tikzpicture}[scale=0.3, transform shape]
\draw[step=\sqw] (\sqw,\sqw) grid (10*\sqw, 7*\sqw); % changed <<<<<<<<<<<<
%col1
\node[str] at (1.5*\sqw,6.5*\sqw) {};
\node[trg] at (1.5*\sqw,5.4*\sqw) {};
\node[sqr] at (1.5*\sqw,4.5*\sqw) {};
\node[sqr] at (1.5*\sqw,3.5*\sqw) {};
\node[sqr] at (1.5*\sqw,2.5*\sqw) {};
\node[sqr] at (1.5*\sqw,1.5*\sqw) {};
%col2
\node[sqr] at (2.5*\sqw,6.5*\sqw) {};
\node[trg] at (2.5*\sqw,5.4*\sqw) {};
\node[crc] at (2.5*\sqw,4.5*\sqw) {};
\node[crc] at (2.5*\sqw,3.5*\sqw) {};
\node[crc] at (2.5*\sqw,2.5*\sqw) {};
\node[sqr] at (2.5*\sqw,1.5*\sqw) {};
%col3
\node[crc] at (3.5*\sqw,6.5*\sqw) {};
\node[str] at (3.5*\sqw,5.5*\sqw) {};
\node[trg] at (3.5*\sqw,4.4*\sqw) {};
\node[trg] at (3.5*\sqw,3.4*\sqw) {};
\node[crc] at (3.5*\sqw,2.5*\sqw) {};
\node[sqr] at (3.5*\sqw,1.5*\sqw) {};
%col4
\node[crc] at (4.5*\sqw,6.5*\sqw) {};
\node[str] at (4.5*\sqw,5.5*\sqw) {};
\node[trg] at (4.5*\sqw,4.4*\sqw) {};
\node[sqr] at (4.5*\sqw,3.5*\sqw) {};
\node[str] at (4.5*\sqw,2.5*\sqw) {};
\node[sqr] at (4.5*\sqw,1.5*\sqw) {};
%col5
\node[crc] at (5.5*\sqw,6.5*\sqw) {};
\node[str] at (5.5*\sqw,5.5*\sqw) {};
\node[str] at (5.5*\sqw,4.5*\sqw) {};
\node[str] at (5.5*\sqw,3.5*\sqw) {};
\node[str] at (5.5*\sqw,2.5*\sqw) {};
\node[str] at (5.5*\sqw,1.5*\sqw) {};
%col6
\node[crc] at (6.5*\sqw,6.5*\sqw) {};
\node[crc] at (6.5*\sqw,5.5*\sqw) {};
\node[crc] at (6.5*\sqw,4.5*\sqw) {};
\node[crc] at (6.5*\sqw,3.5*\sqw) {};
\node[str] at (6.5*\sqw,2.5*\sqw) {};
\node[crc] at (6.5*\sqw,1.5*\sqw) {};
%col7
\node[crc] at (7.5*\sqw,6.5*\sqw) {};
\node[crc] at (7.5*\sqw,5.5*\sqw) {};
\node[crc] at (7.5*\sqw,4.5*\sqw) {};
\pic[filyw] at (7*\sqw,3*\sqw) {square};
\pic[filyw] at (7*\sqw,2*\sqw) {square};
\pic[filyw] at (7*\sqw,1*\sqw) {square};
%col8
\node[crc] at (8.5*\sqw,6.5*\sqw) {};
\node[sqr] at (8.5*\sqw,5.5*\sqw) {};
\node[sqr] at (8.5*\sqw,4.5*\sqw) {};
\pic[filyw] at (8*\sqw,3*\sqw) {square};
\pic[filyw] at (8*\sqw,2*\sqw) {square};
\pic[filyw] at (8*\sqw,1*\sqw) {square};
%col9
\node[crc] at (9.5*\sqw,6.5*\sqw) {};
\node[sqr] at (9.5*\sqw,5.5*\sqw) {};
\node[str] at (9.5*\sqw,4.5*\sqw) {};
\pic[filyw] at (9*\sqw,3*\sqw) {square};
\pic[filyw] at (9*\sqw,2*\sqw) {square};
\pic[filyw] at (9*\sqw,1*\sqw) {square};
\end{tikzpicture}