Giter VIP home page Giter VIP logo

Comments (6)

ihhub avatar ihhub commented on June 24, 2024

Hi @oleg-derevenetz , I believe we need to adjust the priority for Berserk spells for situations when the opponent hasn't casted a spell and when the creature is not the next in a row to make an action. What do you think?

from fheroes2.

oleg-derevenetz avatar oleg-derevenetz commented on June 24, 2024

Hi @ihhub AFAIK the AI trend to use the non-damage spells in such a way that they could be easily dispelled by an opponent is well known (this applies not only to Berserk, but to other control spells as well - e.g. Slow, Blind, etc). I'm afraid that trying to solve this problem head-on by simply changing priorities will lead to the fact that AI will almost always use damage spells instead, because it always casts its spell during its first turn. Ideally, we need to implement some kind of "waiting for the right moment" mechanism, but I don't have any good ideas yet on how to formalize this very concept of the "right moment". In the pro gamer's tournaments, the process of choosing a spell and the right moment to apply it is somewhat similar to poker :) Everyone is guessing what spells the opponent have, if you cast a control spell too early, then it can be dispelled, and if it's too late, then you are risking that the opponent will cast Slow/Mass Slow.

from fheroes2.

crypt47 avatar crypt47 commented on June 24, 2024

... In the pro gamer's tournaments, the process of choosing a spell and the right moment to apply it is somewhat similar to poker :) Everyone is guessing what spells the opponent have, if you cast a control spell too early, then it can be dispelled, and if it's too late, then you are risking that the opponent will cast Slow/Mass Slow.

I'm really a novice regarding this topic and you're probably doing more cleaver things then I'm going to say, but it looks to me like the computer has to have some strategy too. General algorithm with ranking will not do here. The computer should be like player switching to patterns of strategies. For example it should accumulate rangers and high level of mage abilities to use some strategy #1. Or it may "see" that he is class barbarian with a lot of rangers against class sorcerer, and use different "right moment" according to his tactics #2. You surely know much more then me about statistics prediction and modern AI.) Some randomization in making decisions would make it more interesting. Ideally I guess we all want to play against skynet type AI with neural network.)

from fheroes2.

Alucard648 avatar Alucard648 commented on June 24, 2024

What about using Armageddon spell as last ditch effort to end the battle with all creatures on battlefield dead? Especially in scenarios where defeating specific hero is instant win condition for AI.

from fheroes2.

oleg-derevenetz avatar oleg-derevenetz commented on June 24, 2024

What about using Armageddon spell as last ditch effort to end the battle with all creatures on battlefield dead? Especially in scenarios where defeating specific hero is instant win condition for AI.

Currently, AI does not use any "strategic knowledge" during battle. It can cast Armageddon if it is obvious that it's losing the battle, but it can't, say, use tactics like "specially send a hero with a single fast unit to cast Armageddon and win the map".

from fheroes2.

crypt47 avatar crypt47 commented on June 24, 2024

What about using Armageddon spell as last ditch effort to end the battle with all creatures on battlefield dead? Especially in scenarios where defeating specific hero is instant win condition for AI.

This is exactly the case in sample save file. I prevent this by keeping only the fast units to take the initiative and locking enemy's melee in castle walls. AI simply can't figure out he's loosing. Because I have a strategy and he just access only the current situation.

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.