-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalgo.js
13 lines (11 loc) · 900 Bytes
/
algo.js
1
2
3
4
5
6
7
8
9
10
11
// How would the main tinder algorithm work?
// 1. Users logs in
// 2. Query up to the first 10 dogs matching the users preferences and store into a list/queue
// 3. User is shown the first dog(based on his preferences)
// 4. User swipes right or left on the dog
// 5. If user swipes right, the dog is added to his list of liked dogs and the dog is added to his list of seen dogs
// 6. If user swipes left, the dog is added to his list of seen dogs
// 7. Once user has gone through 5 or 10 dogs(idk yall can decide) query again exluding the seen dogs
// 8. If there are no dogs left to show, the user is shown a message saying that there are no more dogs to show, and asked if he wants to see his liked dogs or start over
// 9. If the user wants to see his liked dogs, he is shown a list of his liked dogs in a seperate menu
// 10. If the user wants to start over, he is shown a list of dogs again