Progressing
This commit is contained in:
+12
-12
@@ -7,21 +7,21 @@
|
||||
<table class="table is-bordered is-striped is-narrow is-hoverable">
|
||||
<tr>
|
||||
<th></th>
|
||||
{% for ia in ias %}
|
||||
<th class="has-text-centered">{{ ia.name }}</th>
|
||||
{% for ai in ais %}
|
||||
<th class="has-text-centered">{{ ai.name }}</th>
|
||||
{% endfor %}
|
||||
<th class="has-text-success has-text-centered">✓</th>
|
||||
<th class="has-text-danger has-text-centered">✗</th>
|
||||
</tr>
|
||||
|
||||
{% for ia1 in ias %}
|
||||
{% for ai1 in ais %}
|
||||
<tr>
|
||||
<th class="has-text-centered">{{ ia1.name }}</th>
|
||||
{% for ia2 in ias %}
|
||||
{% if ia1.name == ia2.name %}
|
||||
<th class="has-text-centered">{{ ai1.name }}</th>
|
||||
{% for ai2 in ais %}
|
||||
{% if ai1.name == ai2.name %}
|
||||
<td></td>
|
||||
{% else %}
|
||||
{% set key = ia1.name ~ "/" ~ ia2.name %}
|
||||
{% set key = ai1.name ~ "/" ~ ai2.name %}
|
||||
{% set value = battles | get(key=key) %}
|
||||
{% if value > 0.5 %}
|
||||
<td class="has-text-success">{{ value }}</td>
|
||||
@@ -32,8 +32,8 @@
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<td class="has-text-centered"><strong>{{ ia1.victory_count }}</strong></td>
|
||||
<td class="has-text-centered"><strong>{{ ia1.defeat_count }}</strong></td>
|
||||
<td class="has-text-centered"><strong>{{ ai1.victory_count }}</strong></td>
|
||||
<td class="has-text-centered"><strong>{{ ai1.defeat_count }}</strong></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
@@ -41,10 +41,10 @@
|
||||
<div class="column is-narrow">
|
||||
<table class="table is-bordered is-striped is-narrow is-hoverable">
|
||||
<tr><th class="has-text-centered">AI</th><th>Score</th></tr>
|
||||
{% for ia in sorted_ias %}
|
||||
{% for ai in sorted_ais %}
|
||||
<tr>
|
||||
<td class="has-text-centered"><strong>{{ ia.name }}</strong></td>
|
||||
<td class="has-text-centered">{{ ia.victory_count - ia.defeat_count }}</td>
|
||||
<td class="has-text-centered"><strong>{{ ai.name }}</strong></td>
|
||||
<td class="has-text-centered">{{ ai.victory_count - ai.defeat_count }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user