diff --git a/TODO b/TODO index 05f082f..7f2d960 100644 --- a/TODO +++ b/TODO @@ -3,9 +3,6 @@ Strategies: Move armies to other region if it needs it - http://theaigames.com/competitions/conquest/games/52d5a2964b5ab2354acfcfc8 (round 63) - -Don't attack other regions in same continent if we're in first 7 rounds and opponent is neir - - http://theaigames.com/competitions/conquest/games/52d596974b5ab2354acfcf4b - Defend border region, taking into account opponent armies to be placed that round - http://theaigames.com/competitions/conquest/games/52d3d0004b5ab2354acfbd9c (round 4/5) \ No newline at end of file diff --git a/lib/Helpless/Bot/FirstBot.php b/lib/Helpless/Bot/FirstBot.php index 0467fff..1aded61 100644 --- a/lib/Helpless/Bot/FirstBot.php +++ b/lib/Helpless/Bot/FirstBot.php @@ -46,12 +46,15 @@ public function updateMap() $regions = count($continent->getRegions()); $myRegions = count(\Mastercoding\Conquest\Bot\Helper\General::regionsInContinentByOwner($this->getMap(), $continent, $this->getMap()->getYou())); + // based on bonus + $bonus = $continent->getBonus(); + // to capture - $priorityQueue->insert($captureStrategy, ($regions - $myRegions)); + $priorityQueue->insert($captureStrategy, (($regions - $myRegions) / $bonus)); } - // set priorities + // set priorities, reversed order $i = 1; foreach ($priorityQueue as $captureStrategy) {