···127127128128\subsection{Scenarios Diagram}
129129130130-The scenarios cover all the phases of the game shows the dynamics of the game. First, the ``start the game scenario'' waits for players to register in the system, then the ``dealing scenario'' deals cards to the players, after that the ``bidding scenario'' allows the players to do their bids, then ``play the game scenario'' allows them to play the game and finally the ``end the game scenario'' assigns the players their score and allow them to leave the system. Obiousvly, another game can be played again starting from the ``start the game scenario''. It could happen the case that nobody of the players bid. In this case, the ``dealing scenario'' has to take place again. The scenarios diagram is provided in Figure~\ref{fig:scenarios} .
130130+The scenarios cover all the phases of the game shows the dynamics of the game. First, the ``start the game scenario'' waits for players to register in the system, then the ``dealing scenario'' deals cards to the players, after that the ``bidding scenario'' allows the players to do their bids, then ``play the game scenario'' allows them to play the game and finally the ``end the game scenario'' assigns the players their score and free the system according to some internal rules. Obiousvly, another game can be played again starting from the ``start the game scenario''. It could happen the case that nobody of the players bid. In this case, the ``dealing scenario'' has to take place again. The scenarios diagram is provided in Figure~\ref{fig:scenarios} .
131131132132\begin{figure}[htp]
133133 \centering
···240240 \caption{System overview diagram}
241241\end{figure}
242242243243-In the context of the system overview diagram, internal protocols for the game are also added. Figure~\ref{fig:protocols} provides them all.
243243+In the context of the system overview diagram, simple internal protocols are developed for the game to let agent communicate. Figure~\ref{fig:protocols} provides diagrams for them all.
244244245245\begin{figure}[htp]
246246 \centering
···295295 \centering
296296 \includegraphics[keepaspectratio,scale=0.45]{pdt/images/detailed_design/dealing_capability_overview_diagram.png}
297297 \label{fig:dealing-cap}
298298- \caption{Capability overview diagram for capabilities of the dealer agent}
298298+ \caption{Capability overview diagram of the dealer agent}
299299\end{figure}
300300\begin{figure}[htp]
301301 \centering
···305305 \subfloat[Control bidding]{\includegraphics[keepaspectratio,scale=0.45]{pdt/images/detailed_design/control_bidding_capability_overview_diagram.png}}\\
306306 \subfloat[Count points]{\includegraphics[keepaspectratio,scale=0.45]{pdt/images/detailed_design/count_points_capability_overview_diagram.png}}
307307 \label{fig:notary-cap}
308308- \caption{Capability overview diagram for capabilities of the notary agent}
308308+ \caption{Capability overview diagram of the notary agent}
309309\end{figure}
310310\begin{figure}[htp]
311311 \centering
312312 \subfloat[Release player]{\includegraphics[keepaspectratio,scale=0.45]{pdt/images/detailed_design/release_player_capability_overview_diagram.png}}
313313 \subfloat[Join players]{\includegraphics[keepaspectratio,scale=0.45]{pdt/images/detailed_design/join_players_capability_overview_diagram.png}}
314314 \label{fig:gatekeeper-cap}
315315- \caption{Capability overview diagram for capabilities of the gatekeeper agent}
315315+ \caption{Capability overview diagram of the gatekeeper agent}
316316\end{figure}
317317\begin{figure}[htp]
318318 \centering
···322322 \subfloat[Declare briscola]{\includegraphics[keepaspectratio,scale=0.45]{pdt/images/detailed_design/declare_briscola_capability_overview_diagram.png}}
323323 \subfloat[Join the game]{\includegraphics[keepaspectratio,scale=0.45]{pdt/images/detailed_design/join_to_game_capability_overview_diagram.png}}
324324 \label{fig:non-player-cap}
325325- \caption{Capability overview diagram for capabilities of the non-player character agent}
325325+ \caption{Capability overview diagram of the non-player character agent}
326326\end{figure}
327327328328\section{Prototype}\label{sec:proto}