{% extends "global/Page.html" %} {% load staticfiles otree %} {% block app_styles %} {% endblock %} {% block content %}

Contribution - This is round {{ round_num }}

{% for g in group.in_previous_rounds %} {% endfor %} {% for p in player.in_previous_rounds %} {% endfor %} {% for o in player.get_others_in_group %} {% for p in o.in_previous_rounds %} {% endfor %} {% endfor %} {% for g in group.in_previous_rounds %} {% endfor %}
Round{{ g.round_number }}
Your Contribution{{ p.contribution }}
Player {{ o.id_in_group }} {% if p.contribution %} {{ p.contribution }} {% endif %}
Total Contribution{{ g.total_contribution }}

Earnings history

{% for p in player.in_previous_rounds %} {% endfor %} {% for o in player.get_others_in_group %} {% for p in o.in_previous_rounds %} {% endfor %} {% endfor %} {% for g in group.in_previous_rounds %} {% endfor %} {% for p in player.in_previous_rounds %} {% endfor %}
Your Earnings{{ p.group.individual_share }}
Player {{ o.id_in_group }} {{ p.group.individual_share }}
Group Total Earnings{{ g.total_payoff }}
Your Total Earnings{{ p.payoff }}

Punishment/Reward from others to you

{% for o in player.get_others_in_group %} {% for p in o.in_previous_rounds %} {% endfor %} {% endfor %}
Player {{ o.id_in_group }} {% if player.id_in_group == 1 %} {% if p.punish_1 %} -{{ Constants.punishment_amount }} {% endif %} {% if p.reward_1 %} +{{ Constants.reward_amount }} {% endif %} {% elif player.id_in_group == 2 %} {% if p.punish_2 %} -{{ Constants.punishment_amount }} {% endif %} {% if p.reward_2 %} +{{ Constants.reward_amount }} {% endif %} {% elif player.id_in_group == 3 %} {% if p.punish_3 %} -{{ Constants.punishment_amount }} {% endif %} {% if p.reward_3 %} +{{ Constants.reward_amount }} {% endif %} {% elif player.id_in_group == 4 %} {% if p.punish_4 %} -{{ Constants.punishment_amount }} {% endif %} {% if p.reward_4 %} +{{ Constants.reward_amount }} {% endif %} {% endif %}

This is a public goods game with {{ Constants.players_per_group }} players per group.

In this round you have an endowment of {{ Constants.endowment }}

{% formfield player.contribution label="How much will you contribute (from 0 to 100)?" %} {% next_button %}
{% for otherPlayers in player.get_others_in_group %} {% endfor %}
PlayersPunishmentReward
Player {{ otherPlayers.id_in_group }}
{% endblock %}