I've started making a game tree, but I get stuck after the second level. Suggestions for extending to the desired output or cleaner code are much appreciated.
Desired output
Current output
Current code
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{figure}
\begin{tikzpicture}[
font = \footnotesize,
edge from parent/.style = {draw ,thin},
SN/.style = {%solid node
circle, inner sep=1.2 ,fill=blue},
HN/.style = {%hollow node
circle, inner sep=1.2, draw=blue,
},
level distance = 25mm,
level 1/.style = {sibling distance=50mm},
level 2/.style = {sibling distance=40mm},
]
\node (n0) [HN] {}
child{ node (n1) [SN] {}
edge from parent node[left]{text 1}
}
child{ node (n2) [SN] {}
child{node[HN] {}
edge from parent node[left]{text 3}}
child{node[HN] {}
edge from parent node[right]{text 4}}
edge from parent node[right]{text 2}};
\draw[<-,shorten <=1pt]
(n0) -- + (2,1) node[right,align=left] {nodetext 1 };
\draw[<-,shorten <=1pt]
(n2) -- + (2,1) node[right,align=left] {nodetext 2};
\end{tikzpicture}
\caption{Game tree}
\label{fig:Game tree}
\end{figure}
\end{document}






forestortikz-qtreewould let you do this much more efficiently ;). – cfr Jul 22 '16 at 03:13