# pgmerit To run 1. Install oTree following the instructions at https://otree.readthedocs.io/en/latest/install.html (not oTree lite) 2. Clone this repo and cd into it 3. From the command line, run "otree devserver" ## Session and Participant Variables (updated 24 Feb) participant.vars - "effort_score" : Score on the effort task - "task_chosen" : "Effort" or "Luck" - "endowment" : Endowment given to begin - "wealth" : "rich" or "poor" session.vars - "group_type" : One of "Luck", "Effort" or "Mixed" - "total_pot" : Total amount contributed so far by the group ### Real Effort Numbers In this game, participants have a limited amount of time to answer some mental arithmetic questions. Each correct anwser gives them 1 point. Their total score is saved in the participant vars dictionary, accessed by player.participant.vars['effort_score']. This should be accessible by other apps. The real effort game follows these steps (and pages): - **Intro**. Introduce the game. Only shown on round 1 - **AddNumbers**. The main task. Players have to answer as many mental arithmetic questions as they can within a time limit. Only shown while there is time remaining. - **Results**. The participants total score. Only shown at the last round. Once the timer runs out, all the pages fail the is_displayed() method, so the current_round quickly iterates in the background until it reaches the total number rounds, at which point the Results page is shown. ### Collective Risk Game #### Outstanding Issues/Questions - At the moment, players' payoffs can go negative, should probably not allow that - Currently, Effort/Lottery and Rich/Poor is decided by group id - check if this is random