# Friend match maker

**URL:** <https://forum.heroiclabs.com/t/friend-match-maker/332>\
**Category:** Game Design\
**Created:** [November 20, 2019, 11:36am UTC](https://forum.heroiclabs.com/t/friend-match-maker/332 "2019-11-20T11:36:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GCat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/gcat/32/215_2.png) [@GCat](https://forum.heroiclabs.com/u/GCat)\
**Post date:** [November 20, 2019, 11:36am UTC](https://forum.heroiclabs.com/t/friend-match-maker/332/1 "2019-11-20T11:36:42Z")

</div>

is it possible to create a match for few friends and random people  
and make sure the friends are together in the match ?

---

<div class="post-metadata">

**Author:** ![zyro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/zyro/32/14_2.png) [@zyro](https://forum.heroiclabs.com/u/zyro)\
**Post date:** [November 28, 2019, 2:35pm UTC](https://forum.heroiclabs.com/t/friend-match-maker/332/2 "2019-11-28T14:35:23Z")

</div>

Hi @GCat! This is an interesting use case and there are two patterns you can use to achieve this.

The first is using the matchmaker. Designate a ‘party leader’ in your group of friends, this user will go to the matchmaker looking for a single person. When this opponent is found, go to the matchmaker again and repeat until the match is full. Essentially you’re looking to fill the match up one player at a time, starting with the players you’ve already ‘found’ (the friends group).

Alternatively you can use match listing operations. The ‘party leader’ finds a match with enough room for the whole group by listing for matches where the current user count is `(max size - current group size)` or less. When this match is found send the match ID to all friends in the group and they each join this match.

---

<div class="post-metadata">

**Author:** ![PabloMonfort](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/pablomonfort/32/324_2.png) [@PabloMonfort](https://forum.heroiclabs.com/u/PabloMonfort)\
**Post date:** [August 31, 2020, 7:08pm UTC](https://forum.heroiclabs.com/t/friend-match-maker/332/3 "2020-08-31T19:08:09Z")

</div>

When this match is found send the match ID to all friends in the group, Im stuck on this part, i cant see the way of send that Match ID since im terrible bad on the server backend Go side thats what i need to use Go lang, but how i can send that match ID to lets say a Username ? can you help me ? thanks

---

<div class="post-metadata">

**Author:** ![zyro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/zyro/32/14_2.png) [@zyro](https://forum.heroiclabs.com/u/zyro)\
**Post date:** [September 3, 2020, 10:09am UTC](https://forum.heroiclabs.com/t/friend-match-maker/332/4 "2020-09-03T10:09:47Z")

</div>

There are a few ways to do it but it’s easiest to use [chat](https://heroiclabs.com/docs/social-realtime-chat/) or [in-app notifications](https://heroiclabs.com/docs/social-in-app-notifications/). You can even have the receiving client interpret and use the message without user interaction, it’s all up to your client code.

---

<div class="post-metadata">

**Author:** ![GCat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/gcat/32/215_2.png) [@GCat](https://forum.heroiclabs.com/u/GCat)\
**Post date:** [April 9, 2021, 8:43am UTC](https://forum.heroiclabs.com/t/friend-match-maker/332/5 "2021-04-09T08:43:17Z")

</div>

I see nakama has been changed alot since the time this question was asked  
is there an updated way to achieve the above question?

it needs to be few friends and random people with more friend groups looking for match  
thats how pubg/fortnite does its matchmaking

also any match script will be more then welcomed

---

<div class="post-metadata">

**Author:** ![zyro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/zyro/32/14_2.png) [@zyro](https://forum.heroiclabs.com/u/zyro)\
**Post date:** [May 6, 2021, 8:46pm UTC](https://forum.heroiclabs.com/t/friend-match-maker/332/6 "2021-05-06T20:46:38Z")

</div>

The new Nakama 3 [realtime parties](https://heroiclabs.com/blog/announcements/nakama-3-0/) feature is exactly what you need for matchmaking with friends as a group! More documentation and SDK support for this feature is in progress, so keep an eye on the SDK repositories. 🕶
