Dear oTree community,
I have 2 applications where I want to group participants in groups of 3. In both apps, I need 2 participants who were assigned role A and 2 participants who were assigned role B per group.
Roles are assigned in the first app.
In the second app, I would like to rematch them with the same number of As and Bs per group, but I would like to prevent participants to be rematched with their fellow group members from the first app.
I have saved both participants' role and group number into participant.var in the first app like this:
And this is the code I have so far in the new app:
I just don't know how to use the "group_TG" variable to prevent group member from the previous app to meet again... Any suggestion?
ps: Note that one way to go around it is to put both games in one app, create groups of 9 and then hard code 3 sub-groups for each game, which is something I already did, but then each sub-group has to wait for the two other ones. Hence, I am looking for a way to avoid this to make it more efficient.