                                 MINIMAX

                         Depth-First Tree Search
                      (starting down the left edge)


                                    |
0:                                  * 16
 max                 - - - - - - - - - - - - - - - - -
(Matey)            /                                   \
                  |                                     |
1:                * 16                                  * 8
 min        - - -  - - -                        - - - -  - - - -
(Person)  /              \                    /                  \
         |                |                  |                    |
2:       * 16             * 20               * 8                  * 27
 max    / \             /   \              /   \               /     \
      /     \         /       \          /       \           /         \
     |       |       |         |        |         |         |           |
3:   * 8     * 16    * 20      * 4      * 8       * 5       * 27        * 3
 min |       |       |        /|\       |        /|\        |        /  |  \
    / \     / \     / \     /  |  \    / \     /  |  \     / \     /   / \   \
   |   |   |   |   |   |   |   |   |  |   |   |   |   |   |   |   |   |   |   |
4: *8  *20 *18 *16 *24 *20 *10 *12 *4 *8  *21 *11 *5  *10 *32 *27 *10 *9  *4  *3
               ^
               |
For "min" nodes select the minimum value and back it up to the parent node.
For "max" nodes select the maximum value and back it up to the parent node.




                                 MINIMAX
                         with Alpha-Beta Pruning


                                    |
0:                                  * 16
 max                 - - - - - - - - - - - - - - - - -
(Matey)            /                                   \
                  |                                     |
1:                * 16                                  * 11
 min        - - -  - - -                        - - - -  - - -
(Person)  /              \                    /
         |                |                  |
2:       * 16             * >=20             * 11
 max    / \             /  \               /   \
      /     \         /                  /       \
     |       |       |       ^          |         |
3:   * 8     * 16    * 20    |          * <=8     * <=11
 min |       |       |       |          |        /|\
    / \     / \     / \      |         / \     /
   |   |   |   |   |   |     |        |       |
4: *8  *20 *18 *16 *24 *20   |        *8      *11
                             |
Nodes beyond this point need not be generated because they can only increase
the backed-up value of this node; and since this node is already 20, which is
greater than 16, it will be rejected.
