figure-the-dice-game-model.tex 1.49 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

\definecolor{ublue}{rgb}{0.152,0.250,0.545}
\definecolor{ugreen}{rgb}{0,0.5,0}


%%% outline
%-------------------------------------------------------------------------

\begin{tikzpicture}[scale=0.6]
\begin{scope}
{\footnotesize
\foreach \i in {1,...,5}{
    \node [draw,thick,minimum size=10pt] at (\i,0) {1};
}
}
单韦乔 committed
16
\node [anchor=west] at (33em,0) {$\funp{P}(\text{1}) = 5/30$};
17 18 19 20 21 22 23 24
\end{scope}

\begin{scope}[yshift=-2.5em]
{\footnotesize
\foreach \i in {1,...,4}{
    \node [draw,thick,minimum size=10pt] at (\i,0) {{\color{red} 2}};
}
}
单韦乔 committed
25
\node [anchor=west] at (33em,0) {$\funp{P}(\text{2}) = 4/30$};
26 27 28 29 30 31 32 33
\end{scope}

\begin{scope}[yshift=-5.0em]
{\footnotesize
\foreach \i in {1,...,6}{
    \node [draw,thick,minimum size=10pt] at (\i,0) {{\color{ublue} 3}};
}
}
单韦乔 committed
34
\node [anchor=west] at (33em,0) {$\funp{P}(\text{3}) = 6/30$};
35 36 37 38 39 40 41 42
\end{scope}

\begin{scope}[yshift=-7.5em]
{\footnotesize
\foreach \i in {1,...,12}{
    \node [draw,thick,minimum size=10pt] at (\i,0) {{\color{ugreen} 4}};
}
}
单韦乔 committed
43
\node [anchor=west] at (33em,0) {$\funp{P}(\text{4}) = 12/30$};
44 45 46 47 48 49 50 51
\end{scope}

\begin{scope}[yshift=-10.0em]
{\footnotesize
\foreach \i in {1,...,2}{
    \node [draw,thick,minimum size=10pt] at (\i,0) {{\color{purple} 5}};
}
}
单韦乔 committed
52
\node [anchor=west] at (33em,0) {$\funp{P}(\text{5}) = 2/30$};
53 54 55 56 57 58 59 60
\end{scope}

\begin{scope}[yshift=-12.5em]
{\footnotesize
\foreach \i in {1,...,1}{
    \node [draw,thick,minimum size=10pt] at (\i,0) {{\color{orange} 6}};
}
}
单韦乔 committed
61
\node [anchor=west] at (33em,0) {$\funp{P}(\text{6}) = 1/30$};
62 63 64 65 66 67 68
\end{scope}

\end{tikzpicture}