Lately, I’ve been working on creating an event that could bring forum members together to celebrate the month of love, Valentine

..
Event IdeaThe idea is to create a thread where members can participate and share gifts among themselves. However, I wanted to make it more fun than simply letting users pick each other and send random gifts..So I came up with the idea of pairing users randomly as Valentines and having them share gifts with their assigned partners.
How the Gifting WorksTo make it even more interesting, the gifting follows a pattern. A gift allocated to a user will be sent to their Valentine. That Valentine will also have their own Valentine, whose allocation will be sent to theirs, and so on. This way, everyone both gives and receives, but not directly from the same person..
To add suspense, only the Valentine pairs will be revealed by the 12th. The final gift allocation will then begin on the 14th October..
Hence, After putting this plan together, I concluded that creating a website to support the forum thread (which I would be creating very soon) would make organization easier. The site handles participant stats, pairing, and gift allocation.
So I created
Bitval site to manage this.
Current ChallengeAt the moment, I’m facing a challenge with handling the allocation in a way that ensures fair distribution among participants.
I’ll need Ideas and contributions from you guys to make this successful.
GitHub Repository:
https://github.com/p444c5/BitValRelevant CodeThe method handling the allocation is inside */controller/exchangeController.
Method name:
allocateGifts()I got the idea I currently used in the method (allocateGifts ()) from the AI model i am using .
I don’t know if this actually fits on the current board, if it doesn’t please move to appropriate board .