sir-lancebot icon indicating copy to clipboard operation
sir-lancebot copied to clipboard

Global Leaderboard

Open Shivansh-007 opened this issue 4 years ago • 5 comments

Description

Add a global points leader-board, for the points/coins which are earned by users while playing a game like Trivia Quiz, Tic Tac Toe, Connect 4, etc. Currently each game has its own leader-board, and not a combined one together for all games. In short, combining all the leader-boards into one.

Proposed Implementation

  • [ ] Make a new redis cache in bot/bot.py called Leaderboard (say).

  • [ ] Make a points system in all the games which make use of a leaderboard namely • Battleship • Connect 4 • Riddle • Eggquiz • Minesweeper • Tic Tac Toe • Quiz • Snake Quiz • Snakes And Ladders

  • [ ] Make a cog for for viewing the leaderboard in a pretty way, we can make the coins maybe :lemon_coin: or :gurkan_coin: or :gem_red: (can be discussed more in #media-branding)

  • [ ] Make add_point and remove_points utils functions, would be helpful when users earn points.

Would you like to implement this yourself?

  • [ ] I'd like to implement this feature myself
  • [x] Anyone can implement this feature

Shivansh-007 avatar Mar 16 '21 12:03 Shivansh-007

The points scoring for the rest of the games would definitely have to be normalized. That might be as simple as changing 5 points to 50 in one game to match the rest. Either way, this would be a lot of work, but it's a really good idea!

dawnofmidnight avatar Mar 16 '21 12:03 dawnofmidnight

I like this idea. Maybe we should introduce a maximum amount of points earned per game and per day, so spamming Quizzes alone won’t get you to the top of the board?

Akarys42 avatar Mar 19 '21 13:03 Akarys42

Yeah, that sounds a good idea, maximum per day points per game. Users would be able to play the game but won’t earn points for them.

Shivansh-007 avatar Mar 19 '21 15:03 Shivansh-007

If no one takes up this issue till November, I would go ahead and implement this.

(If some1 wants to help out, it would be awesome, especially implementing the leaderboard into the games once the core is done).

Shivansh-007 avatar Oct 19 '21 15:10 Shivansh-007

Here's a few coin prototypes. With the two designs on the left I was playing around with a "euro" style coin. The two on the right are later designs. We came to the conclusions in #dev-branding that the ducky is probably the best bet for the coin face, and that ducky designs seems to be the favorite anyway. Let me know if you have any suggestions. Artboard 37w-29

b0nes1 avatar Oct 26 '21 23:10 b0nes1