My game is a 1v1 game and often times if 2 players complete a match and then enter the queue right away again then they will match against each other as a rematch. While this isn't an issue for a single rematch, it becomes an issue when they match against each other multiple games in a row with no breaks inbetween.
Is there a way to somehow add a blacklist of player id's that a player cannot match against. For example, I could let matchmaking know to not match this player against the last 5 player id's that they played with. Or is there some other way to implement a system like this?
Answer by SethDu · Feb 15 at 06:33 AM
PlayFab does not provide rules for blocking players in matchmaking. But you can store the ids of the last 5 players played in an entity object or attribute and do the following.
First, you can make players wait a random amount of time before the match starts, the range of this random value depends on the number of players currently in the game.
Secondly, when the match is successful, call GetMatch to get the required information, determine whether the other party is among the 5 people, and if so, re-match.
In fact, when you have enough player, the probability of a rematch will be very low.