diff --git a/src/diana/templ/templ.tikz b/src/diana/templ/templ.tikz new file mode 100644 --- /dev/null +++ b/src/diana/templ/templ.tikz @@ -0,0 +1,36 @@ +\documentclass{article} +\usepackage{tikz} +\newlength{\boardSquare} +\setlength{\boardSquare}{6mm} + +\begin{document} +\begin{tikzpicture} + +% grid +\draw[step=\boardSquare,gray,very thin] (0,0) grid (18\boardSquare,18\boardSquare); +\draw (0,0) rectangle (18\boardSquare,18\boardSquare); + +% stars +{% for y in [3,9,15] %} + {% for x in [3,9,15] %} + \filldraw[fill=black] ({{x}}\boardSquare,{{y}}\boardSquare) circle[radius=0.04]; + {% endfor %} +{% endfor %} + +% stones +{% for p in stones %} + \filldraw[draw=black,fill={{stone_color(p.color)}}] ({{p.x}}\boardSquare,{{p.y}}\boardSquare) circle[radius=0.5\boardSquare]; +{% endfor %} + +% moves +{% for p in moves -%} + \filldraw[draw=black,fill={{stone_color(p.color)}}] ({{p.x}}\boardSquare,{{p.y}}\boardSquare) circle[radius=0.5\boardSquare] node[color={{label_color(p.color)}}]{{ '{'+p.label|string+'}' }}; +{% endfor %} + +% labels +{% for p in labels -%} + {{labeledPoint(p)}} +{% endfor %} + +\end{tikzpicture} +\end{document}