

La realizzazione consiste in una macchina a stati che realizza 3 stati:
- dogIntroduction
- presentations
- verifyName

Dialogo come macchina a stati
-----------------------------

           start
           +----------------+
                            |                                          Dog dialog
    +-----------------------|------------------------------------------+       
    |           +-----------v-------------+                            |
    |         +-----------------+         |                         +-----------+
    |         | dogIntroduction |         | ciao, io sono Pippo...  | firstName |
    |         +-----------------+         |                         +-----------+
    |           |                         |                            |
    |           +-------------------------+                            |
    |                       |                                          |
    |                       |               come ti chiami?            |
    |           +-----------v-------------+                            |
    |         +---------------+           |                            |
    |         | presentations |           |                            |
    |         +---------------+           |-----+                      |
    |           |                         |     | ciao...              |
    |   +-----> |                         | <---+                      |
    |   |  +--> |                         |                            |
    |   |  |    |                         |-------+                    |
    |   |  |    |                         |       | sono un pulcino... |
    |   |  |    |                         | <-----+                    |
    |   |  |    |                         |                            |
    |   |  |    |                         |---------+                  |
    |   |  |    |        match firstName  |         | mi chiamo...     |
    |   |  |    |        +--------------- | <-------+                  |
    |   |  |    |        |                |                            |
    |   |  |    |        |                |---+                        |
    |   |  |    |        |                |   | blablabla              |
    |   |  |    |        |                | <-+                        |
    |   |  |    +--------|----------------+                            |
    |   |  |             |                                             |
    |   |  |             |                                             |
    |   |  |             |         da^^ero ti chiami...?               |
    |   |  |    +--------v----------------+                            |
    |   |  |  +------------+              |-----------+                |
    |   |  |  | verifyName |              |           | si             |
    |   |  |  +------------+          +-- | <---------+                |
    |   |  |    |         store firstName |                            |
    |   |  +----|                     |   |                            |
    |   |    no |                     |   |                            |
    |   |       |                     |   |                            |
    |   +-------|                     |   |                            |
    | blablabla |                     |   |                            |
    |           +---------------------|---+                            |
    +---------------------------------|--------------------------------+
                                      |
                                      |
                                      +-------------------------------> exit

