Hello dvdira, welcome to Wagic.
dvdira wrote:the AI is not targeting properly (...) The AI also does not block and attack properly
Yes, these are known problems of the current AI. If you can provide an improved algorithm for any of this tasks, then please do, but keep in mind that (a) the algorithm would have to remain pretty generic, since a long list of special conditions is bound to cause problems in a game with 10,000 different cards and tons of rules exceptions, and (b) the algorithm would have to perform decently on weak hardware (the PSP isn't the fastest machine on the planet
).
There's a thread specifically about
AI Improvement, suggestions are very welcome!
dvdira wrote:It would be nice though if targeting, attacking and blocking decisions can be made better, since the logic involved is really not that complicated.
If the involved logic is easy for you, then you're probably the perfect person to write down a better algorithm.
Pseudo-code would be quite okay. I've tried my hand at it myself, but I have to admit that with all the different evasion abilities involved (flying, shadow, fear, intimidation, landwalk), several counters against these (e.g. reach and reachshadow), other important abilities like first strike / double strike, trample, rampage, or deathtouch, cards that can't block or can't attack, etc., the logic for choosing attackers/blockers does indeed seem rather complicated to me. Nothing that can't be solved, but I estimate that I'd need at least 5 days of continuous work to come up with a good result (which means 5 days of doing nothing else but eating, sleeping, and working on this, and the result would be an algorithm which still would need to be implemented by someone), and so far I've focused on other things. If you can do it quicker, then by all means do, I'd be thrilled to have a better algorithm for these tasks (imho targeting and assignment of attackers/blockers are the two main reasons for the weakness of the current AI).
dvdira wrote:I also have a noobish question regarding the avatars. How do I install them properly?
They need to be in the folder Res/ai/baka/avatars and have to be named avatar1.jpg, avatar2.jpg, etc.