oTree Forum >

Assign unequal number of players to roles

#1 by papayapap

I have two role in each group for example buyer and seller and want to control who get's which role because I want less sellers than buyers. The documentation says to use 'group.set_players()' but that only reshuffles the players if I am correct. How can I change how many will get each group?

EXAMPLE...

class C(BaseConstants):
    NAME_IN_URL = 'test'
    PLAYERS_PER_GROUP = None
    NUM_ROUNDS = 1
    SELLER_ROLE = 'Seller'
    BUYER_ROLE = 'Buyer'

Write a reply

Set forum username