Hello
OK, let's try in some usefull criticism and not just in some Haha, my bot is more general than yours stuff.
I don't think you will get usefull criticism from people looking at your code because since it's lacking modularization it's to hard to read for non involved guys. Separate files like OpponenInfo.cs that have a clearly defined task are way easier to read than Trogabot.cs
In the past you topped the leaderboard for some time but at present you are struggling. Let's have a look why you are losing your games:
http://theaigames.com/competitions/warlight-ai-challenge/games/53ba57904b5ab20b4223dc8cAfrica can only come into play when the bot who is holding it blocks Brazil. Best play would be to stack in South America until you receive a stalemate and then stack enough in Australia until you have enough armies together to get a safe Australia break. As you faced elimination you let your bot get slaughtered. You bot should have tried to turn that lost game into a stalemate by running away. Some bots are very vulnerable to a run away strategy. Around round 30 the game is of course already lost but your bot is doing the mistake of not keeping his stack together, probably because he only attacks with the needed amount of armies. Just look at the terrible fight you run into round 31. I recommend to attack full force by default and when you are defending a valuable spot to add some carefully designed exceptions.
http://theaigames.com/competitions/warlight-ai-challenge/games/53b9c2124b5ab20b4223d09fTurn one your bot uses his army inefficiently in South America. Look at
https://github.com/Norman1/SupremeDalek/blob/master/src/basicAlgorithms/IdealExpansionCalculator.java how I calculate the optimal moves to take a SuperRegion in one turn. In this game your bot should also have never stacked against me in Africa. There are some bots capable of playing South America, either because of hardcoded stuff (Herz, Gadzbot) or because they have a capable AI (AdsRiskbot). Neither Trogabot nor SupremeDalek are one of those bots. Pick 1+2 in Australia, 3+4 in South America and 5+6 in Africa. South America has following advantages over Australia:
- You can use your remaining armies form taking South America to fight in Africa. Those few remaining armies might allow you to win in Africa, especially if the opponent used to much armies to take Australia
- If the initial momentum from your remaining armies isn't enough to win in Africa you are probably closer to North Africa than your opponent and you can block North Africa. However if the opponent blocks North Africa and eliminated you from Africa then you lost.
Edited 7/7/2014 10:30:23