JDGiardino / BGG-Companion

A Flask companion web app for Board Game Geek
MIT License
2 stars 1 forks source link

From a collection show top rated games for a given amount of players #9

Open JDGiardino opened 2 years ago

JDGiardino commented 2 years ago

User Story : As a User, I would like to be able to see from a game collection the top rated games for the given amount of players I have. For example, Aeons End can play up to 4 players but it actually has a higher rating for playing with 2 players.

Technical Details :
A more complex one might be showing games that was voted by the community the be best played with 2 players for example. Using Aeons end again as an example clicking Community: 1-4 - Best: 2 here https://boardgamegeek.com/boardgame/191189/aeons-end it shows some voting stats :

Screen Shot 2022-04-09 at 9 16 43 AM

which is also available in the API https://api.geekdo.com/xmlapi2/thing?id=191189. So doing best value divided by the total of votes for a number of players we can get the percentage. Aeons End for 2 players that would be the best (292) divided by the total (375) to get 77.9% rating for best played with 2 players.

Acceptance Criteria :

JDGiardino commented 2 years ago

Maybe try maintaining a database/csv that grabs data once a day and can be queried by user at any time. Although this in itself might be a separate Github Issue (separate "Story")