gugi9000 / foosball Goto Github PK
View Code? Open in Web Editor NEWA ratings tracker for the office foosball league
License: MIT License
A ratings tracker for the office foosball league
License: MIT License
I would be nice to have time and date for each game played.
A must for pretty statistics 😄
So the stats start over with every month.
The one source file is getting rather bloated and messy.
It should be extended out to some separate modules, a bit like this:
// This then refers to a file called some_mod.rs.
// Make sure to make everything needed from the module public with `pub`.
mod some_mod;
Both to avoid double posting and to give a little credit to the latest winners.
It could be last X games or maybe today's games.
Maybe also have both a ratings page and a front page.
For use in /player/
so the head can be "All Foo's games" rather than "Games with Foo"
Or actually "Alle Foos kampe" :-)
If you havn't played yet you don't belong on the leaderboard.
On the score board you should see the scores (as in the /ratingsdev (which shows score's development)).
An abbr tag could be used to reveal the details.
Or fail gracefully telling why.
When you choose two player that have never played against each other the page looks broekn.
For both players and balls
When you compare two players games from previous months are included.
Show something special on games where only didn't score any goals.
Or rather read the name. It's already in there.
The link is misssing from the pull down menu
See #40 for reference
The code is a bit messy as it stands.
And it can be difficult to know what does what.
The code should probably be commented, restructured and documented.
show games for current month only
I think it's okay to wait for #38 before fixing
Still using SQLite for the time being.
In http://foosball.dynateam.dk/player/ it should highlight the games the chosen player has won
It might be because the d3 is served from http:
foosball/templates/pages/ratingsdev.html
Line 32 in 3aaf716
Use the /balls URL
And discourage indexing:
User-agent: *
Disallow: /
Use the /ratings URL
| Boldens navn | Number of games
| Blank gummi | 11
| Hvid | 323
| Kork | 1
| Mat gummi | 23
| Orange | 2
On the score board show each players win or loss streak and and icon denoting which it is.
fx. 5⬆️ or 3⏬
When on the /analysis/homeaway page there is no highlight on the right menu.
who wins the most with which ball
If no ratings.db
is present, create one.
several types of balls can be used.
It should be possible to track with one is used
You get a message that the player does not exist.
It should read that the player does not exist or has no games on record.
Admin role with ability to
At least not in the games list.
A player with a few days of bad luck might get discouraged when falling behind.
If the stats only go back so far we can keep their spirit high knowing that it will be forgotten in due time.
On /ratings the ball stats are not limited to current calendar month
Hard to tell why.
But it's reproducable with attached database. There is something about the last game here.
155|2|5|3|10|2017-01-26 14:55:03|5
156|9|3|10|0|2017-01-26 17:59:56|1
I've tried deleting games where id=156 - then it doesn't crash..
Log web requests and if possible errors (panics) to a file.
that's just pretty
Show the development of each player's ratings in a graph
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.