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:
- we have group of 1 6 players
- 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
- 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)
- 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
Post a Comment