flowchart TD
Start[G4: Derechos mínimos de propiedad] --> Init[P1: 10 pavos
P2: 10 elotes]
Init --> A4{P1: Ofrecer tokens?}
A4 -->|No ofrecer| O1[Sin cambios
→ Siguiente ronda]
A4 -->|Proponer oferta| B4[P1 especifica:
- Ofrecer: X pavos, Y elotes
- Pedir: A pavos, B elotes]
B4 --> C4[UI: Ocultar OfferControls
Mostrar detalles oferta]
C4 --> D4{P2: Una sola decisión}
D4 -->|Aceptar| O2[Intercambiar tokens
→ Auto-avance]
D4 -->|Rechazar| O3[Sin cambios
→ Auto-avance]
D4 -->|Robar| E4[P2 recibe oferta sin pagar
UI: Ocultar botones P2]
E4 --> F4{P1: ¿Denunciar al juez?}
F4 -->|No denunciar| O4[Robo exitoso
→ Auto-avance]
F4 -->|Denunciar| J4[⚖️ AutoJudge actúa]
J4 --> S1[Paso 1 - Revertir robo:
Devolver tokens ofrecidos a P1]
S1 --> S2[Paso 2 - Sanción inversa:
P1 recibe lo pedido sin dar nada
P2 pierde lo pedido]
S2 --> O5[Sanción aplicada
→ Auto-avance]
%%{init: {'theme':'dark'}}%%
style Start fill:#b71c1c,stroke:#fff,color:#fff
style Init fill:#c62828,stroke:#fff,color:#fff
style A4 fill:#4527a0,stroke:#fff,color:#fff
style B4 fill:#512da8,stroke:#fff,color:#fff
style C4 fill:#37474f,stroke:#fff,color:#fff
style D4 fill:#455a64,stroke:#fff,color:#fff
style E4 fill:#d32f2f,stroke:#fff,color:#fff
style F4 fill:#e53935,stroke:#fff,color:#fff
style J4 fill:#1b5e20,stroke:#fff,color:#fff
style S1 fill:#2e7d32,stroke:#fff,color:#fff
style S2 fill:#388e3c,stroke:#fff,color:#fff
style O1 fill:#424242,stroke:#fff,color:#fff
style O2 fill:#2e7d32,stroke:#fff,color:#fff
style O3 fill:#757575,stroke:#fff,color:#fff
style O4 fill:#bf360c,stroke:#fff,color:#fff
style O5 fill:#43a047,stroke:#fff,color:#fff