Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI vs Scripted #40

Open
Nostrademous opened this issue Feb 14, 2019 · 2 comments
Open

AI vs Scripted #40

Nostrademous opened this issue Feb 14, 2019 · 2 comments

Comments

@Nostrademous
Copy link
Collaborator

@TimZaman I know you are hoping to test our AI/ML design against Default bots; unfortunately there is no way to do that that I see "with the same hero selection for both sides".

I'm going to spend some time in the next few days and write a Lua-scripted bot so that we can achieve this game-play mode. I will make sure the scripted bot only uses actions that are currently available to the AI bot (no abilities, no items, etc.) and makes decision at a similar frequency (once every 5 frames).

This is just a heads-up.

@TimZaman
Copy link
Owner

Doesn't need to be the exact same hero.. would be awesome if that could be done somehow though. Could we, dependent on the side dire/radiant, expose Think function?

@Nostrademous
Copy link
Collaborator Author

No, unfortunately Think() is "per hero" not "per team per hero". What I mean is, once you create a bot_<HERO_NAME>.lua it over-writes that hero's behavior and there is no way to say "go back to your default behavior if DIRE, run our new code if RADIANT" as there is no super() or base().

We should be able to do different heroes fairly easily... I believe all we need to change is rename the file bot_generic.lua to bot_nevermore.lua and thus our Lua behavior will only apply to SF and not "all" bots. For bots that don't have a defined bot_<HERO_NAME>.lua file and barring the existence of the generic file, they will use default behavior.

Something to test.

Having said all that, I still plan on writing a bot in Lua that is "scripted" and in my opinion better than the Lua bot, yet generic to non-specific heroes that will allows us to have same heroes face off each other with different logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants