///////////////////////////////////// ///// DE otree notes and whatnot///// ///////////////////////////////////// The prisoners dilemma built in game shows subjects a matrix of values. widgets.RadioSelect gives vertical choices widgets.RadioSelectHorizontal gives horizontal choices
The Other Participant
Cooperate Defect
You Cooperate {{ Constants.both_cooperate_payoff }}, {{ Constants.both_cooperate_payoff }} 0, {{ Constants.betray_payoff }}
Defect {{ Constants.betray_payoff }}, 0 {{ Constants.both_defect_payoff }}, {{ Constants.both_defect_payoff }}
The prisoners dilemma built in game has a "time left to complete this page" timer. For a particular page you would say timeout_seconds=# of seconds The ultimatum game built in randomly selects if you will use the strategy method or direct elicitation method. I think maybe if I use a condition on time_out for table display I can get my table to update in real time? random.randint(lower_bound,upper_bound) seems to randomly choose integers from this with equal prob. I think I can use this for randomly selecting my prices. I'd use a condition that says if the randomly selected number was in some range then a particular value displays. The principal agent built in game has a larger table than the prisoner one. The principal agent built in game tells the second player what their payoff will be, and updates this based on which effort they select at the time. Note: For the cashier in the laboratory, oTree can print a list of payments for all participants as a PDF. The vickrey auction built in game has conditional displays for if you won or not.