Giter Club home page Giter Club logo

Comments (7)

Branikolog avatar Branikolog commented on June 12, 2024 2

I think the problem is quite serious and should be solved somehow in the nearest releases.

2024-01-24.14-29-04.mp4

As you see this issue can stop AI development for some time, which can decrease the overall scenario experience.

from fheroes2.

Branikolog avatar Branikolog commented on June 12, 2024 1

Hi, @zenseii
The issue is valid for ~ equal armies. In the video above I gave each AI hero an army of 1 Titan. But I believe it could be 1 Titan vs appropriate amount of peasants (1000 or so. 😄 ) Difficulty does not matter. It's just happens in a certain conditions: when both two equal heroes are close enough to the object of interest (mine) and are not able to run away far enough each turn.

@oleg-derevenetz

This is a very artificial example.

I'm not telling this happens every 5 minutes of game play. I just showing, that this is happening sometimes and either allows human player abuse such behaviour or slows down both AI players as their heroes just stuck in the same place until reinforcement arrives to one of them or other strong hero appear and eliminates both. It's just waste of time for these two players.

EDIT: Actually, there's option 3 which would be to teach the AI to end its turn on the gold mine to protect it seeing that there's a "threat" nearby. That would perhaps be the best option.

This could be at least some sort of camouflage for the problem, as AI heroes would have much wider range and can focus on doing other things, while mine is "taken".

from fheroes2.

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

I should note that while it's true that you are holding the enemy her near this mine, but at the same time, you also keeping your hero nearby in order to distract the enemy hero, that is, in some way, both of you cannot use your heroes for other purposes.

from fheroes2.

Branikolog avatar Branikolog commented on June 12, 2024

@oleg-derevenetz

I should note that while it's true that you are holding the enemy her near this mine, but at the same time, you also keeping your hero nearby in order to distract the enemy hero, that is, in some way, both of you cannot use your heroes for other purposes.

You are absolutely right.
But still that AI hero is in disadvantage since I can enforce my hero with a castle weekly troop growth and some day defeat him.

from fheroes2.

zenseii avatar zenseii commented on June 12, 2024

@Branikolog.

Do these heroes have equal armies? What difficulty did you select? I believe we recently merged a change that makes the AI attack heroes which might appear slightly stronger than them. I'm not sure exactly at what point that kicks in, but in this case it could be a solution.

Either way, a human player would see two good options in the case of your video, in case they have the exact same troops:

  1. Keep on doing the same and denying your opponent of the gold mine.
  2. Attack the hero since you realize this could go on forever.

To teach the AI to do the second one would be very complex because it has to "remember" what it did the last couple of turns with that hero, and see if those are essentially the same moves, but the confounding factors there would be many, because in some cases you do want to do the same things again, like visiting wind mills, creature generators etc.

The simplest solution would be to somehow motivate the AI to attack that opponent, though that too is questionable since losing would give them the gold mine.

EDIT: Actually, there's option 3 which would be to teach the AI to end its turn on the gold mine to protect it seeing that there's a "threat" nearby. That would perhaps be the best option.

from fheroes2.

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

@Branikolog

As you see this issue can stop AI development for some time

This is a very artificial example. In a real game, the rest of the heroes of both kingdoms would have continued to operate, and the castles would have continued to develop. Sooner or later, the balance would have been upset, because either a stronger hero would have come from one side, or a courier would have come and handed over additional troops to his hero. In this artificial case, these heroes have essentially nothing else to do and they can't get reinforcements from anywhere, so what do you want from them?

I think the problem is quite serious

I don't think so. This is an artificial example that is exaggerated. We can't come up with special logic for all corner cases like this.

from fheroes2.

Branikolog avatar Branikolog commented on June 12, 2024

@oleg-derevenetz
This case is not strictly artificial. I was inspired by the real case I've experienced yesterday and I just made a simple map to imitate that case, as I don't have the save file and it's just more representative. When playing yesterday I watched two AI heroes "fighting" for a mine for more than a week, when I came with my hero and eliminated both of them on a new week. :)

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.