{% extends "global/Page.html" %} {% load otree static %} {% block title %} Results {% endblock %} {% block content %}

{% if group.r_aux_g1 >= 0.5 %} 0. You get 2X if the average is between 70 and 100
You get X if the average is between 50 and 70
{% else %} 0. You get 2X if the average is between 0 and 30
You get X if the average is between 30 and 50
{% endif %} 1. Your first private guess is {{ player.private }}
2. Your public guess is {{ player.public }}
3. Your second private guess is {{ player.guess3 }}

The average of the three numbers is {{ group.z_value }}

{% if group.r_aux_g2 >= 0.5 %}

The randomly selected payment is:
{% if group.r_aux_g4 <= 0.25 and group.r_aux_g1 >= 0.5 %} 0. You get 2X if the average is between 70 and 100
You get X if the average is between 50 and 70
The average is {{ group.z_value }}, you get {% if group.z_value >= 70 %} 2x {% elif group.z_value >= 50 and group.z_value < 70 %} X {% else %} 0 {% endif %} {% elif group.r_aux_g4 <= 0.25 and group.r_aux_g1 < 0.5 %} 0. You get 2X if the average is between 0 and 30
You get X if the average is between 30 and 50
The average is {{ group.z_value }}, you get {% if group.z_value <= 30 %} 2x {% elif group.z_value > 30 and group.z_value <= 50 %} X {% else %} 0 {% endif %} {% elif group.r_aux_g4 > 0.25 and group.r_aux_g4 <= 0.5 %} 1. Your first private guess is {{ player.private }}
{% if player.private >= low and player.private <= high %} You get Y (your guess was very close to the actual value) {% else %} You get 0 {% endif %}
{% elif group.r_aux_g4 > 0.5 and group.r_aux_g4 <= 0.75 %} 2. Your public guess is {{ player.public }}
{% if player.public >= low and player.public <= high %} You get Y (your guess was very close to the actual value) {% else %} You get 0 {% endif %}
{% elif group.r_aux_g4 > 0.75 %} 3. Your second private guess is {{ player.guess3 }}
{% if player.guess3 >= low and player.guess3 <= high %} You get Y (your guess was very close to the actual value) {% else %} You get 0 {% endif %}
{% endif %}

{% else %}

The randomly selected payment is:
{% if player.r_aux4 <= 0.25 and group.r_aux_g1 >= 0.5 %} 0. You get 2X if the average is between 70 and 100
You get X if the average is between 50 and 70
The average is {{ group.z_value }}, you get {% if group.z_value >= 70 %} 2x {% elif group.z_value >= 50 and group.z_value < 70 %} X {% else %} 0 {% endif %} {% elif player.r_aux4 <= 0.25 and group.r_aux_g1 < 0.5 %} 0. You get 2X if the average is between 0 and 30
You get X if the average is between 30 and 50
The average is {{ group.z_value }}, you get {% if group.z_value <= 30 %} 2x {% elif group.z_value > 30 and group.z_value <= 50 %} X {% else %} 0 {% endif %}
{% elif player.r_aux4 > 0.25 and player.r_aux4 <= 0.5 %} 1. Your first private guess is {{ player.private }}
{% if player.private >= low and player.private <= high %} You get Y (your guess was very close to the actual value) {% else %} You get 0 {% endif %}
{% elif player.r_aux4 > 0.5 and player.r_aux4 <= 0.75 %} 2. Your public guess is {{ player.public }}
{% if player.public >= low and player.public <= high %} You get Y (your guess was very close to the actual value) {% else %} You get 0 {% endif %}
{% elif player.r_aux4 > 0.75 %} 3. Your second private guess is {{ player.guess3 }}
{% if player.guess3 >= low and player.guess3 <= high %} You get Y (your guess was very close to the actual value) {% else %} You get 0 {% endif %}
{% endif %}

{% endif %} {% next_button %} {% endblock %}