shimupan / lineupx

A Free Lineup Database for a Variety of Games
https://lineupx.net
MIT License
8 stars 0 forks source link

Algorithm developement [Post Page] #243

Open shimupan opened 1 month ago

shimupan commented 1 month ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

We should start working on a "recommendation algorithm" when a user clicks the home page of a game or when they view a post.

Here is the rough idea:

Currently, when a user clicks on a post, the new posts recommended are just posts on the same map. While this might make sense for games like CSGO, Valorant requires more filters.

Here's a proposed algorithm for Valorant posts with each number representing the priority for a post

1) When the user clicks on a post, first display all posts that have the same

Example: Let's say a user wants to look for kayo flashes and they click on a post that has the map bind. Obviously, the user would want to be recommended more kayo bind lineups so we'll display that

2) After we display all the posts with the criteria above, loosen the criteria and only display posts that have the same

3) After those posts are all displayed, we will display posts with the same

4) Then last but not least we will default to displaying posts with the same

note priority 3 and 4 can be swapped

Scope: We will probably have to write more API endpoints and a sophisticated way of cycling through the priorities on the frontend...