Comment 26 for bug 1767976

Revision history for this message
ypopezios (ypopezios) wrote :

I went through the code. Turns out that preciousness is just one instance in a code full of arbitrary values, most of which are not documented. Moreover, they are combined into countless lines of structureless code, which is almost unreadable in the large scale. And from what I can tell, if I was to make some change to it, it would be close to impossible to test its results. The overall effort would be a waste of time.

The positive thing is that now I'm fully aware of why Widelands' AI has major chronic weaknesses. By the way, genetics is neither the problem nor the solution. It could be useful if properly applied, but right now it contributes more to the complexity of the code than to the strength of the AI. If Tibor is willing to closely cooperate, I could consider spending a couple of years, the first one not making any functional changes, just rewriting and documenting the existing code. Otherwise, I have no hope that the AI will ever present any challenge to the players.