Role choosing algorithm -


i writing algorith matchmaking system in multiplayer game, have no ideas how assign roles in group, except brute force approach (with minor optimisations).

here task:

  1. we have group of 1 6 players
  2. each player can choose role tank(t), damagedealer(dd) or healer(h) or any combination of these roles. i.e. paladin_of_light can heal allies (be healer) or deal damage enemies (be damagedealer), not in same time
  3. each group requires 1 tank, 1 healer , 4 damagedealers. if there less 6 players, group can subset of required combination (i.e. group of 3 players can has 3 damagedealers , fine)
  4. algorithm must assign one role each player or declare impossible such group

take @ stable marriage problem. finds optimal match considering preference of each player. should satisfied result.

the wiki-page includes pseudo-code algorithm


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -