Skip to content
a public good game for kids in elementary school
JavaScript HTML Python CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_static
_templates
gif
public_good_kids
.gitattributes
.gitignore
Procfile
README.md
klasse.txt
manage.py
requirements.txt
requirements_base.txt
requirements_server.txt
runtime.txt
settings.py
waitpage-race.log

README.md

Public Goods Game

The public goods game is a standard of experimental economics - read more on Wikipedia. This project is an oTree application for a 4-player public goods game to be played in a browser. At first, the player gets instructed via audio and animations:

Showcase of the instruction animations

The participant takes the role of the blue player and proceeds through the app by touchscreen or mouse interaction. With a test run the participant can get familiar with the controls:

Showcase of the coin controls

The actual game is played with three other real participants. Everyone decides how many coins he wants to put into the community pot and how many to keep for himself. After all participants confirmed their decision, the result is displayed to everyone:

Showcase of a standard public good game procedure

Game variations

UK Strategy

The participant is only allowed to move all coins at once into one of the pots:

Showcase of UK strategy controls

K Strategy

The participant can still only move all coins at once. Furthermore, he gets shown beforehand how the other players decided to move their coins:

Showcase of a K strategy game

Third party punishment

The participant is introduced to some ficticious players and their strategies:

  • yellow player: always keeps all coins for himself
  • green player: always puts all coins into the community pot
  • red player: puts all coins into the community pot if all others do the same, otherwise keeps coins for himself

Showcase of the third party punishment instruction

With this information in mind, the participant now has to distribute some additional coins among the three players (yellow, green and red):

Showcase of the third party punishment controls

Dictator

In the same fashion as with third party punishment, the participant has to distribute some additional coins between himself and another random participant:

Showcase of the third party punishment controls

At the end the participant gets shown how many coins he earned during the session.

Installation

To use this Django application you need to install oTree, which is a software platform for economics experiments.

If you have Python 3 already installed, you only need to run pip3 install -U otree in a terminal.

Start the application

Clone or download this repository to your device. Jump inside the directory and open a terminal window (e.g. PowerShell on Windows). Enter otree devserver. Open your browser and enter http://127.0.0.1:8000 in the address bar. You will have access to invitation links for participants in the same network.

Remark: While this works for a small number of concurrent participants in a local network, you might want to consider hosting the application on a server. Read the corresponding chapter in the oTree documentation for further details.

Further requirements

To ensure the desired sequence of events, the browser should allow autoplay of audio files. Otherwise it is possible that the audio instructions won't start. A series of successful experiments was conducted with tablets (Acer Iconia One 10) using the Fully Kiosk Browser which has a setting to impose no restrictions on autoplay.

Disclaimer

If you publish research conducted using oTree, you are required by the oTree license to cite this paper. (Citation: Chen, D.L., Schonger, M., Wickens, C., 2016. oTree - An open-source platform for laboratory, online and field experiments. Journal of Behavioral and Experimental Finance, vol 9: 88-97)

You can’t perform that action at this time.