Skip to content

Global Leaderboard #627

@Shivansh-007

Description

@Shivansh-007

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
  • Anyone can implement this feature

Metadata

Metadata

Assignees

Labels

area: backendRelated to internal functionality and utilitiescategory: funRelated to fun and gamesstatus: approvedThe issue has received a core developer's approvaltype: featureRelating to the functionality of the application.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions