WarLight AI Challenge: 2014-05-18 10:33:44 |

ps
Level 61
Report
|
jim: was just thinking yesterday, will there be any some sort of live streaming event for the finals? something like analysing a few games leading up to the winners match up, meanwhile talking about the bots strategy, how this differs from regular warlight scenario, maybe chat a little with some of the coders about what their problems were developing, and with the orgas about how the compo went and what's coming up in the future.
i think it could be interesting for normal warlight players to check, could probably get fizzer to announce it on the site during the transmission to get more viewers, it would certainly be more fun for the guys competing and waiting to know about the results. and it would also be cool just for having a record of these things while they are still fresh in ours minds.
i wouldn't mind hosting it, i've hosted a few warlight live tournaments before. would just need to figure out dates so that i'm available on a good internet connection, poke a few people to join in during the event for commentary / interviews and coordinate with you orgas to somehow to avoid spoilers.
|
WarLight AI Challenge: 2014-05-18 15:23:22 |

Trogatog
Level 52
Report
|
maybe chat a little with some of the coders about what their problems were developing, and with the orgas about how the compo went and what's coming up in the future. That could be fun :)
|
WarLight AI Challenge: 2014-05-18 16:38:58 |
GreenTea
Level 60
Report
|
|
WarLight AI Challenge: 2014-05-18 17:51:40 |

ps
Level 61
Report
|
what's your guys threshold for a safe hammering attack?
mine is currently 1.15 the estimated armies of the enemy region. it used to be 1.1 but i had lots of games where i kept hitting them with just 1 army more then the defense and not do much damage, so it would just end up levelling the army count on both sides. i also tried 1.2 but after looking at a few games i felt i was giving the opponent much too leverage to expand into north america when having them pinned on south america.
not sure if the optimum value can be estimated using standard warlight attack simulation. has anyone tried it?
or does anyone has any ideas on how to calculate the best value? i thought of doing a batch test of a huge quantity of games just changing this parameter to test statistically if there is a significant advantage to having it higher or lower but i just been too lazy to actually code that. guess i still have time to try that during this week if no one speaks up.
Edited 5/18/2014 17:53:08
|
WarLight AI Challenge: 2014-05-18 18:25:02 |
GreenTea
Level 60
Report
|
I made simulation of repeated attacks when I always deploy all my income to attack, and enemy always deploy all income to defence. And if after this 'virtual' repeated attacks I see that enemy is broken - then it is some sence to attack. So no magic numbers in my case.
|
WarLight AI Challenge: 2014-05-18 18:31:24 |

ps
Level 61
Report
|
the number of army loss has a random factor, how do you know if your virtual simulation is reliable or not? you could have succeeded out of high luck (like getting a 2vs2 victory).
|
WarLight AI Challenge: 2014-05-18 18:36:06 |
GreenTea
Level 60
Report
|
Considering average values of losts. Yes, sometimes luck is not on my side :(
Edited 5/18/2014 18:36:40
|
WarLight AI Challenge: 2014-05-18 20:57:03 |

ps
Level 61
Report
|
Norman: well, yes, there is always some luck, i was just commenting specifically on greentea's approach. considering for a moment that luck was 0%, there is still a certain ratio below which is not worth attacking because you'll never manage to break the enemy even if you do have more army stack then they do and both of you lose the expected number of armies. so it's debatable if it's worth to "try your luck" with it when it's something else, but it's still important to make sure you are always above that threshold, else you might just be wasting armies ramming a stack you'll never break. i just tried random values on my bot until it felt right and ended up with 1.15. apparently you're doing the real math which comes from 0.7 / 0.6 = 1.16666667
so i guess i should be using 1.167 instead of 1.15
not sure if greentea's approach isn't better. i mean, if you're attacking with for example a stack of 20 with 22 armies and you end up with 8 9 (fake numbers, i didn't try it) it wasn't much worth attacking. you just lost a 2 armies advantage which you'll never get back. you could have used it for something else like expansion.
EDIT- just read your post again Norman, and you are considering the ratio, have to think how to implement something similar in mine.
Edited 5/18/2014 21:04:09
|
WarLight AI Challenge: 2014-05-18 22:26:15 |
GreenTea
Level 60
Report
|
http://theaigames.com/competitions/warlight-ai-challenge/games/53792f894b5ab25857384a21turn 18, 52 armies unable to take 29. 28 defender losts, 24 attacker losts!.. Update. I checked, only ~ 77% average chance to capture, so not very special.
Edited 5/18/2014 22:32:38
|
WarLight AI Challenge: 2014-05-19 08:02:03 |
GreenTea
Level 60
Report
|
|
WarLight AI Challenge: 2014-05-19 11:42:32 |

Odin
Level 60
Report
|
Wow, lots of new posts since I last checked...
Anyway, turns out I'm not going to have time to finish my bot. I'll post some of the design ideas:
- The Bot tries to capture first Australia, then South America, then Africa and then the rest of the world. Apart from Australia and SA, other bonuses are too easy to spoil.
- Picks are always: all in Australia, all in SA, all in Afr. That gives 6 picks.
- Capturing Australia is most important. Even if you lose all territories in SA&Afr, you can march from Australia to that area in a few turns. This I hard-coded into the AI. It turns out that programming the opponent AI prepare for a big army attacking from Asia is difficult. Therefore Australia is better than SA.
- Deployments are determined by priorities. Australian territories as well as SA territories receive high priority. Territories with an enemy bordering receive a quite high priority. Territories with only friendly neighbors receive a very low priority.
- Attacks only happen if 7:6 advantage or higher is to be expected, even after 5 extra deployed troops by enemy.
- Troops stuck in areas with only friendly neighbors will be transfered to better places. Partially I hard-coded this, like from other SA regions you always go to Brazil, from Brazil to North Africa and so on. If no hard-coding present, then a breadth-first search will find the nearest enemy territory and transfer to that direction.
- Deployments to areas that already have big troop stacks are preferred.
- Estimate opponent income at 5. If it's more than 10, then the game is lost anyway. Income estimation by other means too difficult.
- Superregion importance hierarchy: Aus SA Afr Eur NA Asia
These were some of the most important thoughts I had when designing AI strategy.
|
WarLight AI Challenge: 2014-05-19 21:10:47 |
GreenTea
Level 60
Report
|
Strategy hardcoded for map can give results, but for my oppinion it will be not true AI. I propose to raise level of abstraction and invent AI which will perform good in any maps. At least take a try. Maby not for this finals, but as ambitious task for future. Or, as variant, to make some generic core, and all map specific stuff separate in plugable module. So that bot can play without it, but, when map module is enabled - power of game on specific map will increase.
|
WarLight AI Challenge: 2014-05-20 17:44:32 |
{rp} pedrito
Level 48
Report
|
Up to now I had absolutely no hard coded strategy in my bot. But today I added a little, do deal with a few annoying scenarios like people rushing for Europe.
Is that lame? Yes.
I want to win this though, like everyone else, so I'll swallow my pride and just toggle it off again after the finals :)
By the way, good luck everyone. I'm on holidays now and will be throughout the finals, enjoying the sunshine in a beautiful place in France and trying not to think about functions and strategies :D
|
WarLight AI Challenge: 2014-05-20 18:45:28 |

Trogatog
Level 52
Report
|
Is that lame? Yes.
I want to win this though, like everyone else, so I'll swallow my pride and just toggle it off again after the finals :) No judgment here. I've started hard-coding against certain annoyances as well... I've even named a couple functions after the offending players :D
|
WarLight AI Challenge: 2014-05-20 23:24:18 |
RvW
Level 54
Report
|
Trogatog: If memory serves, you're not allowed to have any opponent-specific behaviour. Please double check the rules and make sure you're not breaking them!
|
WarLight AI Challenge: 2014-05-21 02:52:23 |

Trogatog
Level 52
Report
|
Trogatog: If memory serves, you're not allowed to have any opponent-specific behaviour. Please double check the rules and make sure you're not breaking them! This is impossible to know. The only information you're ever given about your opponent is that they might be "player1" or "player2" Annoyances I code are behaviors that I see that screw me. They're not specific to a certain bot, but I see them more in certain bots that I've played a couple hundred times.
Edited 5/21/2014 02:56:18
|
WarLight AI Challenge: 2014-05-21 11:42:59 |
GreenTea
Level 60
Report
|
Looks like first 6 places of ladder are almost equal in game power. So if nobody untill 25 of May will not invent some 'super weapon', then it will be very tough competition.
Edited 5/21/2014 11:43:13
|
Post a reply to this thread
Before posting, please proofread to ensure your post uses proper grammar and is free of spelling mistakes or typos.
|
|