question

Heartman avatar image
Heartman asked

Matchmaking algorithm

Hi,

In order for us to design our matchmaking queues we need to know more precise how the matchmaking algorithm works, so far we are guessuming the following from the documentation:

1. Weights only apply after a rule has become 'Optional'

2. Remaining tickets are evaluated based on Weights in sequence, as such Priority would be a better name as it doesn't actually weigh anything:

Given following rules:

A weight 2

B weight 2

C weight 3

and remaining tickets:

X matches AB

Y matches C

It would pick Y, even though A and B together have more weight

Can you confirm these assumptions?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Seth Du avatar image
Seth Du answered

Theoretically, each Rule is independent and a player should meet A, B and C all to match. Meanwhile, for each type of Rule, there is different evaluation method, the algorithm will prefer closer attribute value with higher weight. in terms of your scenario, if Y has a closer value in attribute C, it will be chosen in high priority.

Please refer to the official sample on : https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/matchmaking/config-examples#rules-with-varying-importance

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Heartman avatar image
Heartman answered

Got it, I assume for the following types, weights only have effect after they have become Optional:

- String equality

- Match total

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.