First of all, I want to thank the community for the help I obtained in my first question, some days ago. Having said that, I want to ask you for some help again, if I may. Essentially, I am currently using the powerful package Forest
to draw Game Theory trees and, so far, so good. But now, I am faced with something that I do not know how to do and that is not explained in the (rather complex) manual of the Forest
package. Essentially, I have a game (tree) with three nodes, each node being the beginning of a sub-game. I basically need to make clear that there are three sub-games in the tree. The graphical representation of what I am looking for is something like this:
The tree that I have drawn looks like this one (and I would like to keep it):
In a nutshell, I would like to draw the red squares of the first tree (Picture 1) on my tree (Picture 2). However, I probably need rhombus, given the form of my tree. Finally, I provide you with the code I am currently using for my tree:
\begin{center}
\begin{forest} for tree={l sep=4em, s sep=8em, anchor=center}
[$P_1$, circle, draw,
[{2, 2}, edge label={node[midway,left]{$D$}}]
[$P_2$, edge label={node[midway,right]{$A$}}, circle, draw,
[{1, 1}, edge label={node[midway,left]{$d$}}]
[$P_1$, edge label={node[midway,right]{$a$}}, circle, draw,
[{0, 0}, edge label={node[midway,left]{$D$}}]
[{3, 3}, edge label={node[midway,right]{$A$}}]]]]
\node[above=30pt,align=center,anchor=center] {\textbf{Figure IV.} Extensive Form of a Centipede Game Variant};
\end{forest}
\end{center}
What do I need to add/change to include these squares?
Thank you all in advance.
Best Regards, Héctor.