calculate the PA values as follows:

$$\begin{aligned}
P = \left\{
\begin{matrix}
 C \times 0.5& if & action \\ 
1  & if & victory \\ 
 0& if & notVictory 
\end{matrix}
\right.
\end{aligned}$$

$$\begin{aligned}
A = \left\{
\begin{matrix}
 0.5 - ((C-0.5)/0.25) & if & action & and & C < 0.5 \\ 
0.5 + ((C-0.5)/0.25) & if &  action & and &C\geq 0.5 \\ 
C 1 & if &  victory \\ 
C 0 & if &  victory \\ 
\end{matrix}
\right.
\end{aligned}$$

The pleasure (P) scale represents how pleased the agent is given a certain event, and for every action the agent takes, we correlate it directly to the confidence, reducing its impact by 50%. The arousal scale impacts the agent’s own perception of how excited it is when performing an action. Again, to modulate the weight of the agents’ own confidence in its actions, every action will give the agent value of 0.5 (neutral excitement) and will be modulated by the agent’s own assessment. As closer as the confidence is of 1, as higher is the excitement modulation that the agent perceives. The opposite happens when confidence is less than 0.5. Obtaining a victory at the end of the game should give 