Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7171169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:21:37+00:00 2026-05-28T15:21:37+00:00

Setting: Multiplayer team game. Problem: Each player has a 1 to 5 star rating

  • 0

Setting: Multiplayer team game.

Problem: Each player has a 1 to 5 star rating which is calculated based on their player stats. I was hoping to find an algorithm that assigns teams to these players in the fairest possible way.

There are two teams, with a maximum of 5 players per team.

Let’s say 6 players join the server. It would be desirable that the server assign the teams like this:

  1. 5 star player
  2. 3 star player
  3. 3 star player

VS

  1. 5 star player
  2. 4 star player
  3. 2 star player

..as opposed to this

  1. 5 star player
  2. 5 star player
  3. 4 star player

VS

  1. 3 star player
  2. 3 star player
  3. 2 star player

In the first example, there are a total of 11 stars per team, whereas in the second example, one team has a total 14 stars, while the other has 8.

Sorry I couldn’t be any more succinct.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:21:38+00:00Added an answer on May 28, 2026 at 3:21 pm

    Couldn’t you just average the scores of all the players, then pick the three for each team whose average score is closest to the average of all players?

    You could select the correct players for each team by assigning the highest two players to separate teams, then average the permutations of the remaining four numbers and choose the one that most closely balances the teams.

    I’m sure there would be a more logic-based solution for getting the last two members of each team as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Setting up a Windows based web application on Amazon's cloud has definitely been a
I'm working on a multiplayer flash game. The server informs each client what other
Setting the scene: My asp.net web application carries a version number which is incremented
I'm setting out to develop a number of Facebook applications/games, which make use of
Setting: A pseudo-random pattern has to be generated. There are several ways / or
Setting up CI within Microsoft Team Foundation Server, I have a build that will
Setting up a new database that has a comments table. I've been told to
Setting up a new team build in tfs build 2008, you're forced to select
Setting: Java 5 - no upgrade possible. I have a large application that has
I am trying to write a game server that supports multiplayer over a network.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.