edge-blade / Dota-2-AI-Bot-Experiment

My Dota 2 Bot Script
GNU General Public License v3.0
11 stars 0 forks source link

All Pick Lane Selection #10

Open edge-blade opened 2 years ago

edge-blade commented 2 years ago

Currently the bots are fairly stupid at making selections. The current approach is to check what slot a given bot is, meaning slot in the lobby, and select a hero type based on that slot. Since bots are currently scripted to fill 1 role it's reasonable to have them evaluate team roles before making a selection. Currently AP rules go:

Radiant:

  1. Mid
  2. Offlane
  3. Support
  4. Support
  5. Safe Carry

Dire:

  1. Mid
  2. Safe Carry
  3. Support
  4. Support
  5. Offlane

I think a better algorithm would be to check if the rest of your team has picked these roles in this order, and then if a role is available to search for a hero to fill that role. At least it'll provide better balance and variety. We also separately do random hero selection based on role incredibly inefficiently. We can do random hero selection based on role fairly easily so that should also get a rework to clean up the hero selection loop.