Display win percentage
This commit is contained in:
parent
ae49acda9e
commit
7af33026a4
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "minesweeper",
|
||||
"version": "0.81.6",
|
||||
"version": "0.81.7",
|
||||
"description": "Just Minesweeper!",
|
||||
"author": "Felix W. Dekker",
|
||||
"browser": "dist/bundle.js",
|
||||
|
|
|
@ -198,11 +198,15 @@ export class LocalStatistics implements Statistics {
|
|||
</tr>
|
||||
<tr>
|
||||
<th>Games completed</th>
|
||||
<td>${this.gamesWon}</td>
|
||||
<td>
|
||||
${this.gamesWon} (${Math.round(100 * this.gamesWon / this.gamesStarted)}%)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Games completed without losing</th>
|
||||
<td>${this.gamesWonWithoutLosing}</td>
|
||||
<td>
|
||||
${this.gamesWonWithoutLosing} (${Math.round(100 * this.gamesWonWithoutLosing / this.gamesStarted)}%)
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
|
Loading…
Reference in New Issue