{{ extends 'global/Page.html' }} {{ block title }}Results{{ endblock }} {{ block content }} {{if player.id_in_group == 1}}

You allocated {{group.P1_R1_F1}} troops to the first front. Your opponent allocated {{group.P2_R1_F1}} troops to the first front.

You allocated {{group.P1_R1_F2}} troops to the second front. Your opponent allocated {{group.P2_R1_F2}} troops to the second front.

You allocated {{group.P1_R1_F3}} troops to the third front. Your opponent allocated {{group.P2_R1_F3}} troops to the third front.

You allocated {{group.P1_R1_F4}} troops to the fourth front. Your opponent allocated {{group.P2_R1_F4}} troops to the fourth front.

You allocated {{group.P1_R1_F5}} troops to the fifth front. Your opponent allocated {{group.P2_R1_F5}} troops to the fifth front.

{{ if group.p1_over_allocate == False and group.p2_over_allocate == False }}

You won {{group.p1_fronts_won}} fronts. Your opponent won {{group.p2_fronts_won}} fronts. You tied for {{group.fronts_tied}} fronts.

{{ if group.p1_fronts_won > group.p2_fronts_won }}

You won. Your winning payoff is {{player.payoff}}.

{{ endif }} {{ if group.p1_fronts_won < group.p2_fronts_won }}

You lost. Your losing payoff is {{player.payoff}}.

{{ endif }} {{ if group.p1_fronts_won == group.p2_fronts_won }}

You tied. Your payoff is {{player.payoff}}.

{{ endif }} {{endif}} {{ if group.p1_over_allocate == True and group.p2_over_allocate == False }}

You over-allocated your troops and automatically lost. You had {{Constants.round1_troops1}} troops and allocated a total of {{group.p1_total_allocation}}. You have a losing payoff of {{player.payoff}}.

{{ endif }} {{ if group.p1_over_allocate == False and group.p2_over_allocate == True }}

Your opponent over-allocated their troops and automatically lost. They had {{Constants.round1_troops2}} troops and allocated a total of {{group.p2_total_allocation}}. You won by default and have a payoff of {{player.payoff}}.

{{ endif }} {{ if group.p1_over_allocate == True and group.p2_over_allocate == True }}

You and your opponent both over-allocated your troops. You had {{Constants.round1_troops1}} troops and allocated a total of {{group.p1_total_allocation}}. Your opponent had {{Constants.round1_troops2}} troops and allocated a total of {{group.p2_total_allocation}}. You both automatically lost and ended up with a losing payoff of {{player.payoff}}.

{{ endif }} {{ endif }} {{if player.id_in_group == 2}}

You allocated {{group.P2_R1_F1}} troops to the first front. Your opponent allocated {{group.P1_R1_F1}} troops to the first front.

You allocated {{group.P2_R1_F2}} troops to the second front. Your opponent allocated {{group.P1_R1_F2}} troops to the second front.

You allocated {{group.P2_R1_F3}} troops to the third front. Your opponent allocated {{group.P1_R1_F3}} troops to the third front.

You allocated {{group.P2_R1_F4}} troops to the fourth front. Your opponent allocated {{group.P1_R1_F4}} troops to the third front.

You allocated {{group.P2_R1_F5}} troops to the fifth front. Your opponent allocated {{group.P1_R1_F5}} troops to the third front.

{{ if group.p1_over_allocate == False and group.p2_over_allocate == False }}

You won {{group.p2_fronts_won}} fronts. Your opponent won {{group.p1_fronts_won}} fronts. You tied for {{group.fronts_tied}} fronts.

{{ if group.p2_fronts_won > group.p1_fronts_won }}

You won. Your winning payoff is {{player.payoff}}.

{{ endif }} {{ if group.p2_fronts_won < group.p1_fronts_won }}

You lost. Your losing payoff is {{player.payoff}}.

{{ endif }} {{ if group.p2_fronts_won == group.p1_fronts_won }}

You tied. Your payoff is {{player.payoff}}.

{{ endif }} {{endif}} {{ if group.p2_over_allocate == True and group.p1_over_allocate == False }}

You over-allocated your troops and automatically lost. You had {{Constants.round1_troops2}} troops and allocated a total of {{group.p2_total_allocation}}. You have a losing payoff of {{player.payoff}}.

{{ endif }} {{ if group.p2_over_allocate == False and group.p1_over_allocate == True }}

Your opponent over-allocated their troops and automatically lost. They had {{Constants.round1_troops1}} troops and allocated a total of {{group.p1_total_allocation}}. You won by default and have a payoff of {{player.payoff}}.

{{ endif }} {{ if group.p1_over_allocate == True and group.p2_over_allocate == True }}

You and your opponent both over-allocated your troops. You had {{Constants.round1_troops2}} troops and allocated a total of {{group.p2_total_allocation}}. Your opponent had {{Constants.round1_troops1}} troops and allocated a total of {{group.p1_total_allocation}}. You both automatically lost and ended up with a losing payoff of {{player.payoff}}.

{{ endif }} {{ endif }} {{ if player.round_number < Constants.num_rounds}} {{ next_button }} {{endif}} {{ endblock }}