Best way to make knockout ligue with nakama?

hi.
im planning to make a knockout Ligue in my game.

Is there any implementation for it in Nakama? If not, what is the best way to implement it in Nakama?

is it the best idea to use party for such tournaments?

1 Like

is there any idea for this subject?

I also like to get some advice from anyone as how to implement this.

Can you explain what you mean by knockout league?

I guess something like where participants are eliminated from the tournament after losing a match. The structure typically involves a series of rounds, with winners advancing to the next round and losers being eliminated. Similar to World Cup in football etc.

1 Like

Got it!

Tournaments seem like the perfect fit for your needs, with some custom logic added. Since tournaments are essentially leaderboards, you can use them to track user registrations, games played, etc.

To implement this:

  • Add custom matching logic to query the leaderboard for players who haven’t lost yet.
  • Pair these players for matches dynamically.
  • Determine semi-final/final rounds based on the remaining player count.

im not sure the tournament is a good option for knockout leagues. in Nakama tournaments are time-limited leaderboards. so probably it won’t work.

Thanks. I remember looking at Tournaments and there were good reasons why I didn’t stick to it. I think a knockout type match making requies a fair bit of custom implementation at the moment, specially for keeping a track of the tournament’s structure and match making for the e.g. last 32, last 16, last 8 and so on.

I have put this feature on hold right now, and will probably add this in phase 2 or something.

Knockout leagues are not a first party API at the moment but it’s possible to implement them using the Storage Engine and a combination of other APIs, this also heavily depends on whether the matches are scheduled to happen in realtime or can be submitted within a time window. I think tournaments could be a good fit for the latter but you’d need to add some logic to the reset and end hooks to calculate who moves over to the next phase and etc.

To match players together in a knockout league you could use Storage Search.

Parties are meant to be used to matchmake a party of players together against other players and/or parties or just manage the party of players playing together via a realtime connection.

1 Like