{"action":"created","issue":{"url":"https://api.github.com/repos/JohnMTorgerson/Viking/issues/7","repository_url":"https://api.github.com/repos/JohnMTorgerson/Viking","labels_url":"https://api.github.com/repos/JohnMTorgerson/Viking/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/JohnMTorgerson/Viking/issues/7/comments","events_url":"https://api.github.com/repos/JohnMTorgerson/Viking/issues/7/events","html_url":"https://github.com/JohnMTorgerson/Viking/issues/7","id":118765541,"number":7,"title":"placeArmies() should sometimes pursue a knockout objective even if it doesn't have enough armies to meet the cost","user":{"login":"JohnMTorgerson","id":6146526,"avatar_url":"https://avatars.githubusercontent.com/u/6146526?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnMTorgerson","html_url":"https://github.com/JohnMTorgerson","followers_url":"https://api.github.com/users/JohnMTorgerson/followers","following_url":"https://api.github.com/users/JohnMTorgerson/following{/other_user}","gists_url":"https://api.github.com/users/JohnMTorgerson/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnMTorgerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnMTorgerson/subscriptions","organizations_url":"https://api.github.com/users/JohnMTorgerson/orgs","repos_url":"https://api.github.com/users/JohnMTorgerson/repos","events_url":"https://api.github.com/users/JohnMTorgerson/events{/privacy}","received_events_url":"https://api.github.com/users/JohnMTorgerson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JohnMTorgerson/Viking/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-25T05:46:04Z","updated_at":"2016-03-06T04:32:47Z","closed_at":"2016-03-06T04:32:47Z","body":"Currently we're skipping knockout objectives that we can't afford to complete in a single turn, which is often a good idea. But there are scenarios in which it would probably be wise to spend two or more turns building up enough armies to be able to do a knockout. We'll have to spend some time figuring out what those scenarios are.\r\n\r\nAt least one special case of this scenario is placeInitialArmies(), where the bot only ever has 4 armies to place at a time, and so it ignores any knockout objectives that cost more than that in the entire place initial armies phase, which is bad. We could probably solve this particular problem with an ad hoc fix for placeInitialArmies()."},"comment":{"url":"https://api.github.com/repos/JohnMTorgerson/Viking/issues/comments/192803014","html_url":"https://github.com/JohnMTorgerson/Viking/issues/7#issuecomment-192803014","issue_url":"https://api.github.com/repos/JohnMTorgerson/Viking/issues/7","id":192803014,"user":{"login":"JohnMTorgerson","id":6146526,"avatar_url":"https://avatars.githubusercontent.com/u/6146526?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnMTorgerson","html_url":"https://github.com/JohnMTorgerson","followers_url":"https://api.github.com/users/JohnMTorgerson/followers","following_url":"https://api.github.com/users/JohnMTorgerson/following{/other_user}","gists_url":"https://api.github.com/users/JohnMTorgerson/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnMTorgerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnMTorgerson/subscriptions","organizations_url":"https://api.github.com/users/JohnMTorgerson/orgs","repos_url":"https://api.github.com/users/JohnMTorgerson/repos","events_url":"https://api.github.com/users/JohnMTorgerson/events{/privacy}","received_events_url":"https://api.github.com/users/JohnMTorgerson/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T04:32:47Z","updated_at":"2016-03-06T04:32:47Z","body":"Did an ad hoc solution for placeInitialArmies(), so it won't do the affordability check during the placeInitialArmies() phase for knockouts. This is enough of a solution to this problem that I'm going to close this issue, since it doesn't seem to be a problem during normal gameplay."}}