Giter Club home page Giter Club logo

Comments (2)

ihhub avatar ihhub commented on June 18, 2024

Hi @Branikolog , this is too broad requirement about cases when the AI should use and shouldn't. Please specify the conditions and explain why we should implement this way or another.

from fheroes2.

Branikolog avatar Branikolog commented on June 18, 2024

Hi, @ihhub

This spell is rather powerful and consumes lots of mana if used improperly.

Analyzing the case from the video I can suggest a few improvements in logic, that could optimize the spell usage.
AI should use DD if the target is blocked or unreachable in the current circumstances.
AI should preferably use DD when the controlled hero could save a reasonable amount of movement points. When AI hero creates a path on a screen and the amount of movement points to reach the target cell highly exceeds the number of movement points spent for spellcast - then DD brings the highest benefit. It's much more effective to cast DD and save 1500 pts, rather than jump to not so distant pile of wood, that requires wasting only 400pts. to reach it.
On a video above you can see that AI simply jumps over a few artifacts, that seem to block his path to capture a sawmill.
So if any object blocks hero path AI hero could pick them up instead of jumping over it.

from fheroes2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.