MantisBT - VCMI
View Issue Details
0002697VCMIAI - Adventure Mappublic2017-06-17 08:312017-06-17 11:04
Dydzio 
Warmonger 
normalminoralways
resolvedfixed 
Microsoft WindowsWindows 7Home Premium x64
1.next 
1.next 
0002697: Inconsistent goal priority evaluation
Different goals have different priority evaluation algorithms and there was no attempt to make them "fair" to each other - so priority "3" from one algorithm for example gatherArmy will be really better choice for AI than priority "2" evaluated with different algorithm, for example visitTile.
No tags attached.
Issue History
2017-06-17 08:31DydzioNew Issue
2017-06-17 08:31DydzioStatusnew => assigned
2017-06-17 08:31DydzioAssigned To => Warmonger
2017-06-17 10:24WarmongerNote Added: 0007095
2017-06-17 10:24WarmongerStatusassigned => resolved
2017-06-17 10:24WarmongerFixed in Version => 1.next
2017-06-17 10:24WarmongerResolutionopen => fixed
2017-06-17 11:04DydzioNote Added: 0007096
2017-06-17 11:04DydzioNote Edited: 0007096bug_revision_view_page.php?bugnote_id=7096#r3358

Notes
(0007095)
Warmonger   
2017-06-17 10:24   
Fixed in https://github.com/vcmi/vcmi/commit/5e8fe083f2285d01300d1e3a17022ea8ab13c28f [^]

Other Goals have no sensible goal evaluation whatsoever.
(0007096)
Dydzio   
2017-06-17 11:04   
I would say this isn't resolved - i posted the bug for future reference - what you did was making gatherArmy evaluation more fair, but proper implementation would require a lot of time and practical AI testing. It would need to almost "ensure" that priority evaluated with one algorithm is fair for other algorithms (f.e. gatherArmy evaluation result "3" is really better than visitTile result "2.5". Unifying min and max priority does not make it "fair" yet.