Also here's the source for pedrito:
https://github.com/pedritoelcabra/pedritobotIt's messy and ugly. I need to be more organized and methodical for the next competition...
Note the four map-specific routines I had prepared but then disabled for the final version. They did reduce my performance. I should have left this one in though, now that I think about it:
// catch a bot going for early europe - Blender!!
if(($map_name == "small_earth") &&
(!count($map->prov_in_bonus(6, $map->player_two))) &&
(!count($map->prov_in_bonus(2, $map->player_two))) &&
(!count($map->prov_in_bonus(6, "unknown"))) &&
(!count($map->prov_in_bonus(2, "unknown"))) ){
if(($round == 1) && ($map->regions[12]->owner == $map->player_one) ){
toLogX("enemy going for europe... going for break!");
$map->proposed_moves[] = new CMove(10, 5, 5, 12, 6, 12, 21, 0);
}
if(($round == 2) && ($map->regions[21]->owner == $map->player_one) ){
toLogX("enemy going for europe... going for break!");
$armies = $map->regions[21]->armies - 1 + 5;
$weaker = ($map->regions[18]->armies < $map->regions[20]->armies ? 18 : 20);
$map->proposed_moves[] = new CMove(10, 5, 5, 21, $armies, 21, $weaker, 0);
}
}
It needs some tweaking against the current version of Blender though because it seems that he now always takes one SA pick in addition to Europe.
Edited 7/2/2014 20:40:21