I need to draw a game tree that is similar to the image below. Is there any way to do this using the Tikz package so that the grids can simply be added as nodes?

|
I need to draw a game tree that is similar to the image below. Is there any way to do this using the Tikz package so that the grids can simply be added as nodes?
|
|||
|
|
|
TikZ doesn't have a node shape of this form. But since it is just a rectangle with some added lines, it is relatively straightforward to define (once knowing how to define shapes).
The above code defines a node shape named
Update: I added some useful anchors. |
|||||||||||||
|
|
I see two possible solutions. This one with the
And this one with the
The grids can be created individually. |
||||
|
|
|
An idea but there is a problem with size like 3 cm. This modified version is easier but I always a problem with grids like 3*3
With the next code 3*3 grids work
|
||||
|
|