I am trying to construct a gambling task in which the outcomes of multiple chance games are predicted, then the games are played out through one of the random stimulus generator functions, and "win-loss" feedback regarding the predictions is provided on a trial-by-trial basis. Is it possible to have the program assess the match between the participant's prediction and the subsequent stimulus randomly presented for that trial? I have provided what I've come up with so far (including stimuli) for your perusal. Thanks in advance for your help.