{% extends "global/Page.html" %} {% load otree static %} {% block styles %} {% endblock %} {% block title %} Results — round {{ subsession.round_number }} {% endblock %} {% block content %}

You are a {{ player.role }}.

{% if player.role == 'buyer' %}

You bought the following fruits:

{% if transactions %} {% else %}

You didn't buy any fruits.

{% endif %}

You spent {{ balance_change }} on this and now have a balance of {{ player.balance }}.

{% else %} {% if transactions %}

You sold the following things:

{% for t in transactions %}
  • {{ t.amount }} pieces of {{ t.fruit.kind }} for {{ t.fruit.price }} per piece to buyer {{ t.buyer.participant.id }}
  • {% endfor %} {% else %}

    You didn't sell any fruits.

    {% endif %}

    You gained {{ balance_change }} from this and now have a balance of {{ player.balance }}.

    {% endif %}

    {% next_button %}

    {% endblock %}