{% if subsession.round_number <= session.config.num_of_test_rounds %}
This is a test round!
{% endif %}
{% if subsession.round_number <= session.config.num_of_test_rounds %}

Test round {{ subsession.round_number }} of {{ session.config.num_of_test_rounds }}

{% else %}

Round {{ round_number }} of {{ num_of_rounds }}

{% endif %}

{% if participant.vars.role == "buyer" %}

Your valuation is {{ player.money }}.


You are buyer {{ player.display_id }}. You can submit a bid or accept a submitted ask to buy the good. {% else %}

Your production costs are {{player.cost }}.


You are seller {{ player.display_id }}. You can submit an ask or accept a submitted bid to sell the good. {% endif %}

Market opens in
{% if participant.vars.role == 'seller' %} {% if maxValue == player.cost %} {% else %} {% endif %} {% else %} {% if minValue == player.money %} {% else %} {% endif %} {% endif %}
Your current {% if participant.vars.role == 'buyer' %}bid{% else %}ask{% endif %} is ${ value }
You successfully traded.

Current bids and asks

Bids Asks
${ row.r2.value } - buyer ${ row.r2.id_in_group } trading you
${ row.r1.value } - seller ${ row.r1.id_in_group } trading you

Market Participants

Buyer Seller
${ part[0].role } ${ part[0].id_in_group } you ${ part[0].status } ${ part[1].role } ${ part[1].id_in_group } you ${ part[1].status }