{% extends 'layouts/base.html' %} {% load static %} {% load i18n %} {% block title %}{% trans "Dice Game" %}{% endblock %} {% block extrastyle %} {% endblock %} {% block content %}

🎲 {% trans "Dice Game" %}

💰 {% trans "Suas Fichas" %}: {{ user_fichas }}
🎲
📋 {% trans "Regras do Jogo:" %}
  • ❌ {% trans "Não pode escolher a mesma modalidade duas vezes seguidas" %}
  • 🎯 {% trans "A cada 5 jogadas, você DEVE escolher 'Número Específico'" %}
  • 💰 {% trans "Aposta mínima para 'Número Específico': 10 fichas" %}
{% if must_play_number %}
⚠️ {% trans "ATENÇÃO!" %} {% trans "Esta é sua" %} {{ total_plays|add:1 }}ª {% trans "jogada. Você DEVE escolher 'Número Específico'!" %}
{% endif %} {% if last_bet_type %}
ℹ️ {% trans "Última jogada:" %} {{ last_bet_type|upper }}. {% trans "Escolha uma modalidade diferente!" %}
{% endif %}

{% trans "Escolha seu tipo de aposta:" %}

x{{ config.even_odd_multiplier }}
{% trans "Par" %}
2, 4, 6
{% if last_bet_type == 'even' %}
❌ {% trans "Última jogada" %}
{% endif %}
x{{ config.even_odd_multiplier }}
{% trans "Ímpar" %}
1, 3, 5
{% if last_bet_type == 'odd' %}
❌ {% trans "Última jogada" %}
{% endif %}
x{{ config.high_low_multiplier }}
{% trans "Alto" %}
4, 5, 6
{% if last_bet_type == 'high' %}
❌ {% trans "Última jogada" %}
{% endif %}
x{{ config.high_low_multiplier }}
{% trans "Baixo" %}
1, 2, 3
{% if last_bet_type == 'low' %}
❌ {% trans "Última jogada" %}
{% endif %}
x{{ config.specific_number_multiplier }}
{% trans "Número Específico" %}
{% trans "Escolha 1-6" %}
{% if must_play_number %}
⚠️ {% trans "OBRIGATÓRIO!" %}
{% endif %} {% if last_bet_type == 'number' and not must_play_number %}
❌ {% trans "Última jogada" %}
{% endif %}

📊 {% trans "Suas Estatísticas" %}

{% trans "Total de Jogos" %}: {{ stats.total_games|default:0 }}
{% trans "Vitórias" %}: {{ stats.total_won|default:0 }}
{% trans "Taxa de Vitória" %}: {{ win_rate }}%
{% trans "Lucro/Prejuízo" %}: {% if profit >= 0 %}+{% endif %}{{ profit }}

📋 {% trans "Histórico Recente" %}

{% if user_history %} {% for history in user_history %}
{{ history.created_at|date:"d/m/Y H:i" }} - {{ history.get_bet_type_display }} {% if history.bet_value %}({{ history.bet_value }}){% endif %} - Resultado: {{ history.dice_result }} {% if history.won %} +{{ history.prize_amount }} fichas {% else %} -{{ history.bet_amount }} fichas {% endif %}
{% endfor %} {% else %}

{% trans "Você ainda não jogou." %}

{% endif %}
{% endblock %}