| Session | Course | Subject | Slides |
|---|---|---|---|
| I | Python | Intoduction, Variables, Types | link |
| II | Python | Lists, Logicals, Conditionals, Dictionaries | link |
| III | Python | Classes | link |
| IV | Python | Modules, Packages, Ecosystem | link |
| Session | Course | Subject | Slides |
|---|---|---|---|
| V | oTree | Introduction, Structure, Individual Experiments | link |
| VI | cont'd | ||
| VII | oTree | Group Experiments, Homogenous Groups | link |
| VIII | cont'd |
| Session | Course | Subject | Slides |
|---|---|---|---|
| IX | oTree | Heterogeneous Groups | link |
| IX | oTree | Matching, Apps | link |
| X | oTree | Advanced Pages and Templates HTML JS | link |
| X | oTree | Simultaneous Games, Live Method | link |
| XI | oTree | Deploying | Demo |
| XII | oTree | Online Experiments: Challenges and Tips | link |
Take the Public Goods Game we used. Do the following:
-
Set the number of rounds to 3
-
Add a Welcome page and add some welcome messages to it. Make it visible only on the first page (hint: look at the documentation for
is_displayed) -
Show the contributions of other players in the group (including or excluding myself) Hint:
-
Path 1: You can create a list of contributions and input it into the template. Then you need to check
vars_for_templatein the documentation. -
Path 2: You can loop over the players in the group in the template. Check
{{ for p in group.get_players }}in the documentation. This is the template version of group.get_players().
oTree Documentation: https://otree.readthedocs.io/en/latest/
- Python 3.8 or higher https://www.python.org/downloads/
- Pip (should be automatically installed with Python)
- Visual Studio Code (https://code.visualstudio.com/download) or a text editor of your preference
- Also, please get a GitHub account if you can.