-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Matching: Heavily refactor our dive-in code.
This commit makes the following changes - Don't match players into rooms which won't fit them - Don't create 3 copies of the room list worst-case, small optimization - Select rooms with a weighted distribution, instead of a uniform distribution. This makes "better" rooms (e.g. higher mood) more likely to be picked. - Return a proper 404 status code when no rooms are found.
- Loading branch information
Showing
2 changed files
with
63 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters