changed up a few things regarding scoring, added some usability features
This commit is contained in:
@@ -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 %}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user