Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show random games on the home page #120

Open
marein opened this issue Apr 20, 2022 · 0 comments
Open

Show random games on the home page #120

marein opened this issue Apr 20, 2022 · 0 comments

Comments

@marein
Copy link
Owner

marein commented Apr 20, 2022

Show 5-10 running games on the home page.

  • Each game is updated in realtime.
  • Each game can be replaced by another random game with a renew button.
  • With a global renew button, all games can be renewed with a new set of random games.
  • A game always remains on the screen, even if it is finished (unless a renew button is clicked).
  • By clicking on a game, the user is redirected to the game page.

Possible implementation

  • Use srandmember to display x random games.
  • Use a zset to display the x most recently created games.
  • Use a zset to display games of the highest rated players. Implement Elo rating #28 would be a prerequisite for this solution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant