Git Product home page Git Product logo

foosball's People

Contributors

gugi9000 avatar lfalch avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

foosball's Issues

Add filter for genitive

For use in /player/

so the head can be "All Foo's games" rather than "Games with Foo"

Or actually "Alle Foos kampe" :-)

Show the latest few games on the frontpage

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.

Show win/loss streak

On the score board show each players win or loss streak and and icon denoting which it is.

fx. 5⬆️ or 3⏬

Refactor codebase

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.

Write tests

  • Test for adding player
  • Test for adding game
  • Test for showing ratings
  • Test for showing games
  • (Test for adding ball)

Logging

Log web requests and if possible errors (panics) to a file.

homeaway breaks the server in some cases

Hard to tell why.

But it's reproducable with attached database. There is something about the last game here.

rating-err.db.zip

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..

Show score instead of rating

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.

Restructure source code

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;

ball type not tracked

several types of balls can be used.

It should be possible to track with one is used

Limit stats to latest 90 days

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.

Admin mode

Admin role with ability to

  • add/edit players (name, photo)
  • add/edit balls (name/photo)
  • edit games (everything)
  • reset stats (given that it's needed when a games has been edited)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.