From b1b753e317daa10e03a6a3b210d185539fac176b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 12 Sep 2023 23:56:45 +0200 Subject: Calculate Elo ratings. Primarily for use with future matchmaking system to provide better games for everyone. Show top 5 players of each game on the game pages. --- views/game_stats.pug | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 views/game_stats.pug (limited to 'views/game_stats.pug') diff --git a/views/game_stats.pug b/views/game_stats.pug new file mode 100644 index 0000000..a60d7cb --- /dev/null +++ b/views/game_stats.pug @@ -0,0 +1,25 @@ +//- vim:ts=4:sw=4: +doctype html +html + head + include head + title #{title_name} - Ranking + body + include header + article + h1 #{title_name} - Ranking + + table(style="min-width:auto") + thead + tr + th Player + th.r Rating + th.r Plays + th.r Last played + tbody + each row in ratings + tr + td= row.name + td.r= row.rating + td.r= row.count + td.r= row.last -- cgit v1.2.3