changed up a few things regarding scoring, added some usability features

This commit is contained in:
root
2020-06-16 13:31:05 +02:00
parent 00d0df4af7
commit 953f2eeb46
9 changed files with 64 additions and 30 deletions

View File

@@ -15,12 +15,16 @@
<tr>
<th>Name</th>
<th>Average</th>
<th>Rounds</th>
<th>Plays</th>
<th></th>
</tr>
{% for challenge in challenges %}
<tr>
<td>{{challenge.name}}</td>
<td>{{challenge.average|intcomma}}</td>
<td>{{challenge.average}}</td>
<td>{{challenge.num_rounds}}</td>
<td>{{challenge.num_plays}}</td>
<td><a class="btn btn-success btn-block" href="{% url 'game:new-game' %}?challenge={{challenge.id}}" role="button">Play</a></td>
</tr>
{% endfor %}

View File

@@ -15,7 +15,7 @@
{{ form.non_field_errors }}
{% csrf_token %}
<div class="form-group form-row">
<label for="staticName" class="col-sm-4 col-form-label">Name</label>
<label for="staticName" class="col-sm-4 col-form-label">Challenge Name</label>
<div class="col-sm-8">
{{form.name}}
</div>

View File

@@ -14,7 +14,7 @@
{% endif %}
<div class="alert alert-info">
Your average guess was {{average_distance|intcomma}}m away.{% if all_average %} The average for this challenge is {{all_average|intcomma}}m{%endif%}
Your total score was {{total_score}}.{% if all_average %} The average for this challenge is {{all_average}}{%endif%}
</div>
<div id="map" class="guessMap"></div>

View File

@@ -14,7 +14,7 @@
{% endif %}
<div class="alert alert-info">
Your guess was {{distance|intcomma}}m away.
You scored {{result}} out of 100.
</div>
<div id="map" class="guessMap"></div>