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 prefers heroes although the enemy can't be attacked #5881

Open
frankystone opened this issue Apr 28, 2023 · 1 comment
Open

AI prefers heroes although the enemy can't be attacked #5881

frankystone opened this issue Apr 28, 2023 · 1 comment
Labels
ai Computer players bug Something isn't working

Comments

@frankystone
Copy link
Contributor

Just found this when watching an ai only game: In this map are several places where one can see the enemy but can't attack him because a broad river prevents attacking. When the AI players reached those places they always set their military sites to
store heroes. This weakens the AI.

To reproduce

  1. Load this network game wl_autosave_nethost_00.zip
  2. Follow the rivers to see what happens

Expected behavior
AI should calculate if the military sites are in danger or not and set the soldiers accordingly.

Screenshots
Screenshots are probably from another game.

shot0013
shot0014

Version:

  • OS: archlinux
  • Widelands Version: 1.2~git26123 (e416a98@master) Debug

Additional context
Maybe the same code as for calculating if a player can attack can be reused.

@frankystone frankystone added bug Something isn't working ai Computer players labels Apr 28, 2023
@hessenfarmer
Copy link
Contributor

I can confirm this but I can't promise any fix soon. Problem is that the AI lacks a lot of concepts a human player has. one of these missing concepts is awareness of the spatial situation on the map.

@frankystone frankystone changed the title AI prefers heroes although it can't be attacked AI prefers heroes although the enemy can't be attacked Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai Computer players bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants