I am in the process of creating a board game. So far, I have designed the cards in TikZ and they look fun. However, I am not sure how to draw the gameboard in TikZ and I could not find much related help by searching in TeX.SE. The game contains two boards; one in which the cells are arranged in a linear way (in the shape of a rectangle), and another with cells arranged in a circular manner (in the shape of concentric circles). I have hand-designed the boards and they look like this:

Rectangular Gameboard Circular Gameboard

The first four cells (numbered 1, 2, 3, 4 in the outermost layer of the circular board) have been divided into 5 sub-cells each (1.1, 1.2, 1.3, 1.4, 1.5, 2.1, 2.2, $\dots$, 4.4, 4.5) shown in the rightmost column of the rectangular board (with the exception of 4.5, which lies in the second column). I want to create a digital design for the boards and I can probably do it in some SVG-supporting software (like Figma), but I am really interested to learn how to do it in LaTeX, especially in TikZ. Even if I can get help with the design of a small portion of the boards, I can find my way to change the codes and complete the whole design. I am clueless how to even start the TikZ code and any help would be really appreciated.

2 Answers 2


In the images, there does not seem to be a consistent pattern in which tiles touch each other in the circular vs rectangular boards. Chalking that up to the difficulty of doing this by hand... I assume you want something that is consistent layout in both. So, effectively we are projecting a ribbon of tiles onto a kind of polar coordinates.


  shape/.style = { fill=#1, draw=white, thick, },
\newcommand{\rect}[6]{% x, y, w, h, color, label
  \draw[shape=#5] ({#1},{#2}) rectangle ++({#3},{#4});
  \node at ({#1+#3/2},{#2+#4/2}) {#6}; }
\newcommand{\slice}[6]{% r0, r1, d0, d1, clr, label
  \draw[shape=#5] ({#3*360}:{#1}) 
    -- ({#3*360}:{#2}) arc ({#3*360}:{#4*360}:{#2})
    -- ({#4*360}:{#1}) arc ({#4*360}:{#3*360}:{#1});
  \node at ({(#3*180+#4*180)}:{#1/2+#2/2}) {#6}; }
\newcommand{\rectslice}[3]{% total N this layer, i/N this tile, color
  \pgfmathtruncatemacro\Ntile{1+\Nmax-\thetile} % compute the tile number
  \begin{scope}[xshift=12\X,yshift=\Xmax/2] % controls relative placement
  \rectslice{12}{0}{R}\rectslice{12} {1}{R}\rectslice{12} {2}{R}
  \rectslice{12}{3}{G}\rectslice{12} {4}{P}\rectslice{12} {5}{P}
  \rectslice{12}{6}{P}\rectslice{12} {7}{B}\rectslice{12} {8}{B}



  • 1
    I like it! I would play that game.
    – Sandy G
    Apr 10, 2022 at 3:38
  • 1
    :) it's giving me Inferno vibes. Apr 10, 2022 at 15:03
  • This is awesome, thank you! I guess I will be playing around with this until I get the shapes that I want. It was a big challenge for me to design this manually on cardboard and that is why the pattern seems inconsistent. The only important pattern is the number of cells in each layer/column. My only concern is how to start numbering the cells in the circular board from the outermost layer so that the last cell is located at the center. Apr 11, 2022 at 5:22
  • 1
    Sounds good. I've updated the code and solution to have the numbering start in the outermost layer. However, now you have to specify the largest number (36). I also rotated the circular board to match the photo. Apr 11, 2022 at 5:50
  • I changed the \rectslice command so I could manually label the cells. It took me a while but I got exactly what I wanted. I'm going to post the result as an answer here. Apr 11, 2022 at 17:35

Thanks to Jesse's answer, I got the result that I was looking for. I have changed the colors and the labeling (in the \rectslice command), but the code is essentially the same.


  shape/.style = { fill=#1, draw=white, thick, },
\newcommand{\rect}[6]{% x, y, w, h, color, label
  \draw[shape=#5] ({#1},{#2}) rectangle ++({#3},{#4});
  \node at ({#1+#3/2},{#2+#4/2}) {#6}; }
\newcommand{\slice}[6]{% r0, r1, d0, d1, clr, label
  \draw[shape=#5] ({#3*360}:{#1}) 
    -- ({#3*360}:{#2}) arc ({#3*360}:{#4*360}:{#2})
    -- ({#4*360}:{#1}) arc ({#4*360}:{#3*360}:{#1});
  \node at ({(#3*180+#4*180)}:{#1/2+#2/2}) {#6}; }
\newcommand{\rectslice}[4]{% total N this layer, i/N this tile, color, label
%   \pgfmathtruncatemacro\Ntile{1+\Nmax-\thetile} % compute the tile number (not used here)
  \begin{scope}[xshift=14\X,yshift=\Xmax/2] % controls relative placement
  \stepcounter{layer} % Layer 6
  \stepcounter{layer} % Layer 5
  \stepcounter{layer} % Layer 4
  \stepcounter{layer} %Layer 3
  \stepcounter{layer} % Layer 2
  \stepcounter{layer} %Layer 1


  • 1
    Nice! :D looks great. Out of curiosity, do the colours denote terrain types or something? Apr 11, 2022 at 19:28
  • Thank you! The color of a cell denotes the dietary preference of the cell. The green ones represent, well, the most "green" diets, and the black cells are the most carnivorous. The cells of the rectangular board are all located on Earth, whereas the circular board covers the whole cosmos (the inner layers represent planets in the Solar System and the cells of the outermost layer correspond to exoplanets and stars beyond the heliosphere). Apr 11, 2022 at 22:04
  • 2
    I posted something about it here if you are interested! Apr 12, 2022 at 8:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .