adamkali / adamkali/Tavern-Backend

Check for the prefrences and see if they are compatible

Open
#5 0 comments 0 reactions 1 assignee Claimed by @adamkali View on GitHub
enhancement good first issue
Dominant language
Go
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

https://github.com/adamkali/Tavern-Backend/blob/40addcbb17c9f3ec0b39e10e2862b5a24d7f3c56/controllers/UserController.go#L127

There needs to be a way to check if the relationship is compatable by using the prefrences. The other part f this will to be to make a new struct: `type Experience struct {...}` where the user could pick whether or not they prefer to play with someone more expereiced and want to learn, or filter out novices below a certain, or not tocare at all and just want everyone. This will be a data type in the Database, where it can hold data like:

Experience | id | exp | will_teach (int)
--- | --- | --- | ---
1 | 0000... | Veteran | 0
2 | 1111... | Master | 1
3 | 2222... | Godlike | -1

0 meaning 'I do not care I want to play with everyone', 1 'Yeah I want to teach people how to play', and -1 meaning 'I just want to get in and have super fun highjinks at a high level!'

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.