In Smartriqs I have seen and tried the Dictator Game with 3 conditions and corresponding 3 stakes. There the matching is based on Participant ID and participants are matched in pair randomly. Now I am designing a survey where I want to incorporate this Dictator Game with 3 condition. But the change will be in participant matching. Suppose we have 12 people in our experiment. All these are husbands and wives that is 6 married couples. I want to make sure when the matching is happening in the Dictator game, each husband is matched with his wife only and make the pair. Not with any other’s wife. For example, Husband 1 (A1) should be matched with Wife 1(B1) and Husband 2 (A2) should be matched with Wife 2 (B2). We can not allow cases where Husband 1 (A1) is matched with Wife 2 (B2) or Husband 2 (A2) is matched with Wife 1 (B1) or match between two husbands or match between two wives.
I want to know if it is possible to create such condition by editing Java Script or is there any procedure that can help me create this kind of restrictive condition on matching? If yes kindly provide the source or direction where I can learn from and execute this.