01.09.2013, 22:48
there are 2 ways i can offer.
1) u may keep current amount of players in each team and put player in the team with min amount;
2) if you keep list of your players, you may calculate amount of players in teams (a = ALL_COUNT/2, b = ALL_COUNT-a) and set team=1 for A random players and team=2 for the other.
1) u may keep current amount of players in each team and put player in the team with min amount;
2) if you keep list of your players, you may calculate amount of players in teams (a = ALL_COUNT/2, b = ALL_COUNT-a) and set team=1 for A random players and team=2 for the other.