We need a function for handling the overall actions of the game and informing the algorithm of the actions from the opponent. In this case, the player's actions:
public void TellOpponentAction(RPSAction action){ totalActions++; float utility; utility = GetUtility(lastAction, action); score[(int)lastAction] += utility; count[(int)lastAction] += 1;}