#1 by R800377803
I am designing a 60 participant experiment and would like half of my players to play the app sequence in reverse order. The complexity is that participants are already assigned to one of two permanent roles (sams or oms), and are randomly paired with a participant of the other role in each round. In other words, I have to ensure that participants only play those within their sequence, and that there is an even number of each role in the cohort. This is what I currently have in my creating_session function (after splitting between sams and oms roles). I get the debug read outs, but none are playing the backward sequence. Any ideas? sams_players = [p for p in players if p.id_in_group == 2] oms_players = [p for p in players if p.id_in_group == 1] for i, player in enumerate(sams_players): if i < len(sams_players) / 2: player.participant.vars['app_sequence'] = ['practice', 'A', 'B', 'C', 'D', 'payment'] print("sams player", i, " assigned forward app sequence") else: player.participant.vars['app_sequence'] = ['practice', 'D', 'C', 'B', 'A', 'payment'] print("sams player", i, "assigned backward app sequence") for i, player in enumerate(oms_players): if i < len(oms_players) / 2: player.participant.vars['app_sequence'] = ['practice', 'A', 'B', 'C', 'D', 'payment'] print("oms player", i, "assigned forward app sequence") else: player.participant.vars['app_sequence'] = ['practice', 'D', 'C', 'B', 'A', 'payment'] print("oms player", i, "assigned backward app sequence")