{"action":"created","comment":{"url":"https://api.github.com/repos/freeorion/freeorion/pulls/comments/29285744","id":29285744,"diff_hunk":"@@ -0,0 +1,1602 @@\n+\"\"\"\n+This module deals with the autonomous shipdesign from the AI. The design process is class-based.\n+The basic functionality is defined in the class AIShipDesign. The more specialised classes mostly \n+implement the rating function and some additional information for the optimizing algorithms to improve performance. \n+\n+Example usage of this module:\n+import ShipDesignAI\n+myDesign = ShipDesignAI.AIShipDesign_Military()\n+myDesign.additional_specifications.enemy_mine_dmg = 10\n+best_military_designs = myDesign.optimize_design()  # best designs per planet: (rating,planetID,design_id,cost) tuples\n+\n+\n+Available ship classes:\n+- AIShipDesign_Military: basic military ship","path":"default/AI/ShipDesignAI.py","position":14,"original_position":14,"commit_id":"7028d9796ee6d14ce4dd0db65ca27e0034781e6b","original_commit_id":"8f06f12d73805032c4aa5ce73a7dcc4091821a3a","user":{"login":"Morlic-fo","id":11706951,"avatar_url":"https://avatars.githubusercontent.com/u/11706951?v=3","gravatar_id":"","url":"https://api.github.com/users/Morlic-fo","html_url":"https://github.com/Morlic-fo","followers_url":"https://api.github.com/users/Morlic-fo/followers","following_url":"https://api.github.com/users/Morlic-fo/following{/other_user}","gists_url":"https://api.github.com/users/Morlic-fo/gists{/gist_id}","starred_url":"https://api.github.com/users/Morlic-fo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Morlic-fo/subscriptions","organizations_url":"https://api.github.com/users/Morlic-fo/orgs","repos_url":"https://api.github.com/users/Morlic-fo/repos","events_url":"https://api.github.com/users/Morlic-fo/events{/privacy}","received_events_url":"https://api.github.com/users/Morlic-fo/received_events","type":"User","site_admin":false},"body":"You mean AIShipDesign as classname?\r\n\r\nThe intention was to make it clearly distinct from \"real\" ShipDesigns (i.e. universe ingame objects). I'm open for alternative name suggestions but I must disagree with simply removing it.","created_at":"2015-04-28T20:38:04Z","updated_at":"2015-04-28T20:38:04Z","html_url":"https://github.com/freeorion/freeorion/pull/49#discussion_r29285744","pull_request_url":"https://api.github.com/repos/freeorion/freeorion/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/freeorion/freeorion/pulls/comments/29285744"},"html":{"href":"https://github.com/freeorion/freeorion/pull/49#discussion_r29285744"},"pull_request":{"href":"https://api.github.com/repos/freeorion/freeorion/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/freeorion/freeorion/pulls/49","id":34303002,"html_url":"https://github.com/freeorion/freeorion/pull/49","diff_url":"https://github.com/freeorion/freeorion/pull/49.diff","patch_url":"https://github.com/freeorion/freeorion/pull/49.patch","issue_url":"https://api.github.com/repos/freeorion/freeorion/issues/49","number":49,"state":"open","locked":false,"title":"AI: autonomous ship design","user":{"login":"Morlic-fo","id":11706951,"avatar_url":"https://avatars.githubusercontent.com/u/11706951?v=3","gravatar_id":"","url":"https://api.github.com/users/Morlic-fo","html_url":"https://github.com/Morlic-fo","followers_url":"https://api.github.com/users/Morlic-fo/followers","following_url":"https://api.github.com/users/Morlic-fo/following{/other_user}","gists_url":"https://api.github.com/users/Morlic-fo/gists{/gist_id}","starred_url":"https://api.github.com/users/Morlic-fo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Morlic-fo/subscriptions","organizations_url":"https://api.github.com/users/Morlic-fo/orgs","repos_url":"https://api.github.com/users/Morlic-fo/repos","events_url":"https://api.github.com/users/Morlic-fo/events{/privacy}","received_events_url":"https://api.github.com/users/Morlic-fo/received_events","type":"User","site_admin":false},"body":"There is still some work to be done but the current version should be stable.\r\n\r\nAs the changes are already somewhat extensive and non-trivial, I guess it makes sense to discuss this basic version now and then polish it further from here.","created_at":"2015-04-28T19:36:56Z","updated_at":"2015-04-28T20:38:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e046438555d7004cc69fa4fd96c4451ff7fbf7ec","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/freeorion/freeorion/pulls/49/commits","review_comments_url":"https://api.github.com/repos/freeorion/freeorion/pulls/49/comments","review_comment_url":"https://api.github.com/repos/freeorion/freeorion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/freeorion/freeorion/issues/49/comments","statuses_url":"https://api.github.com/repos/freeorion/freeorion/statuses/7028d9796ee6d14ce4dd0db65ca27e0034781e6b","head":{"label":"Morlic-fo:AI-Shipdesign","ref":"AI-Shipdesign","sha":"7028d9796ee6d14ce4dd0db65ca27e0034781e6b","user":{"login":"Morlic-fo","id":11706951,"avatar_url":"https://avatars.githubusercontent.com/u/11706951?v=3","gravatar_id":"","url":"https://api.github.com/users/Morlic-fo","html_url":"https://github.com/Morlic-fo","followers_url":"https://api.github.com/users/Morlic-fo/followers","following_url":"https://api.github.com/users/Morlic-fo/following{/other_user}","gists_url":"https://api.github.com/users/Morlic-fo/gists{/gist_id}","starred_url":"https://api.github.com/users/Morlic-fo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Morlic-fo/subscriptions","organizations_url":"https://api.github.com/users/Morlic-fo/orgs","repos_url":"https://api.github.com/users/Morlic-fo/repos","events_url":"https://api.github.com/users/Morlic-fo/events{/privacy}","received_events_url":"https://api.github.com/users/Morlic-fo/received_events","type":"User","site_admin":false},"repo":{"id":33083305,"name":"freeorion","full_name":"Morlic-fo/freeorion","owner":{"login":"Morlic-fo","id":11706951,"avatar_url":"https://avatars.githubusercontent.com/u/11706951?v=3","gravatar_id":"","url":"https://api.github.com/users/Morlic-fo","html_url":"https://github.com/Morlic-fo","followers_url":"https://api.github.com/users/Morlic-fo/followers","following_url":"https://api.github.com/users/Morlic-fo/following{/other_user}","gists_url":"https://api.github.com/users/Morlic-fo/gists{/gist_id}","starred_url":"https://api.github.com/users/Morlic-fo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Morlic-fo/subscriptions","organizations_url":"https://api.github.com/users/Morlic-fo/orgs","repos_url":"https://api.github.com/users/Morlic-fo/repos","events_url":"https://api.github.com/users/Morlic-fo/events{/privacy}","received_events_url":"https://api.github.com/users/Morlic-fo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Morlic-fo/freeorion","description":"Source code repository of the FreeOrion project.","fork":true,"url":"https://api.github.com/repos/Morlic-fo/freeorion","forks_url":"https://api.github.com/repos/Morlic-fo/freeorion/forks","keys_url":"https://api.github.com/repos/Morlic-fo/freeorion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Morlic-fo/freeorion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Morlic-fo/freeorion/teams","hooks_url":"https://api.github.com/repos/Morlic-fo/freeorion/hooks","issue_events_url":"https://api.github.com/repos/Morlic-fo/freeorion/issues/events{/number}","events_url":"https://api.github.com/repos/Morlic-fo/freeorion/events","assignees_url":"https://api.github.com/repos/Morlic-fo/freeorion/assignees{/user}","branches_url":"https://api.github.com/repos/Morlic-fo/freeorion/branches{/branch}","tags_url":"https://api.github.com/repos/Morlic-fo/freeorion/tags","blobs_url":"https://api.github.com/repos/Morlic-fo/freeorion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Morlic-fo/freeorion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Morlic-fo/freeorion/git/refs{/sha}","trees_url":"https://api.github.com/repos/Morlic-fo/freeorion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Morlic-fo/freeorion/statuses/{sha}","languages_url":"https://api.github.com/repos/Morlic-fo/freeorion/languages","stargazers_url":"https://api.github.com/repos/Morlic-fo/freeorion/stargazers","contributors_url":"https://api.github.com/repos/Morlic-fo/freeorion/contributors","subscribers_url":"https://api.github.com/repos/Morlic-fo/freeorion/subscribers","subscription_url":"https://api.github.com/repos/Morlic-fo/freeorion/subscription","commits_url":"https://api.github.com/repos/Morlic-fo/freeorion/commits{/sha}","git_commits_url":"https://api.github.com/repos/Morlic-fo/freeorion/git/commits{/sha}","comments_url":"https://api.github.com/repos/Morlic-fo/freeorion/comments{/number}","issue_comment_url":"https://api.github.com/repos/Morlic-fo/freeorion/issues/comments{/number}","contents_url":"https://api.github.com/repos/Morlic-fo/freeorion/contents/{+path}","compare_url":"https://api.github.com/repos/Morlic-fo/freeorion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Morlic-fo/freeorion/merges","archive_url":"https://api.github.com/repos/Morlic-fo/freeorion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Morlic-fo/freeorion/downloads","issues_url":"https://api.github.com/repos/Morlic-fo/freeorion/issues{/number}","pulls_url":"https://api.github.com/repos/Morlic-fo/freeorion/pulls{/number}","milestones_url":"https://api.github.com/repos/Morlic-fo/freeorion/milestones{/number}","notifications_url":"https://api.github.com/repos/Morlic-fo/freeorion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Morlic-fo/freeorion/labels{/name}","releases_url":"https://api.github.com/repos/Morlic-fo/freeorion/releases{/id}","created_at":"2015-03-29T18:09:38Z","updated_at":"2015-04-28T19:03:01Z","pushed_at":"2015-04-28T20:35:28Z","git_url":"git://github.com/Morlic-fo/freeorion.git","ssh_url":"git@github.com:Morlic-fo/freeorion.git","clone_url":"https://github.com/Morlic-fo/freeorion.git","svn_url":"https://github.com/Morlic-fo/freeorion","homepage":"http://www.freeorion.org/","size":477734,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"freeorion:master","ref":"master","sha":"d5ec689a836ff8c1be92d947097d02d5ec1ae332","user":{"login":"freeorion","id":1025550,"avatar_url":"https://avatars.githubusercontent.com/u/1025550?v=3","gravatar_id":"","url":"https://api.github.com/users/freeorion","html_url":"https://github.com/freeorion","followers_url":"https://api.github.com/users/freeorion/followers","following_url":"https://api.github.com/users/freeorion/following{/other_user}","gists_url":"https://api.github.com/users/freeorion/gists{/gist_id}","starred_url":"https://api.github.com/users/freeorion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeorion/subscriptions","organizations_url":"https://api.github.com/users/freeorion/orgs","repos_url":"https://api.github.com/users/freeorion/repos","events_url":"https://api.github.com/users/freeorion/events{/privacy}","received_events_url":"https://api.github.com/users/freeorion/received_events","type":"Organization","site_admin":false},"repo":{"id":33066062,"name":"freeorion","full_name":"freeorion/freeorion","owner":{"login":"freeorion","id":1025550,"avatar_url":"https://avatars.githubusercontent.com/u/1025550?v=3","gravatar_id":"","url":"https://api.github.com/users/freeorion","html_url":"https://github.com/freeorion","followers_url":"https://api.github.com/users/freeorion/followers","following_url":"https://api.github.com/users/freeorion/following{/other_user}","gists_url":"https://api.github.com/users/freeorion/gists{/gist_id}","starred_url":"https://api.github.com/users/freeorion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeorion/subscriptions","organizations_url":"https://api.github.com/users/freeorion/orgs","repos_url":"https://api.github.com/users/freeorion/repos","events_url":"https://api.github.com/users/freeorion/events{/privacy}","received_events_url":"https://api.github.com/users/freeorion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/freeorion/freeorion","description":"Source code repository of the FreeOrion project.","fork":false,"url":"https://api.github.com/repos/freeorion/freeorion","forks_url":"https://api.github.com/repos/freeorion/freeorion/forks","keys_url":"https://api.github.com/repos/freeorion/freeorion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freeorion/freeorion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freeorion/freeorion/teams","hooks_url":"https://api.github.com/repos/freeorion/freeorion/hooks","issue_events_url":"https://api.github.com/repos/freeorion/freeorion/issues/events{/number}","events_url":"https://api.github.com/repos/freeorion/freeorion/events","assignees_url":"https://api.github.com/repos/freeorion/freeorion/assignees{/user}","branches_url":"https://api.github.com/repos/freeorion/freeorion/branches{/branch}","tags_url":"https://api.github.com/repos/freeorion/freeorion/tags","blobs_url":"https://api.github.com/repos/freeorion/freeorion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freeorion/freeorion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freeorion/freeorion/git/refs{/sha}","trees_url":"https://api.github.com/repos/freeorion/freeorion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freeorion/freeorion/statuses/{sha}","languages_url":"https://api.github.com/repos/freeorion/freeorion/languages","stargazers_url":"https://api.github.com/repos/freeorion/freeorion/stargazers","contributors_url":"https://api.github.com/repos/freeorion/freeorion/contributors","subscribers_url":"https://api.github.com/repos/freeorion/freeorion/subscribers","subscription_url":"https://api.github.com/repos/freeorion/freeorion/subscription","commits_url":"https://api.github.com/repos/freeorion/freeorion/commits{/sha}","git_commits_url":"https://api.github.com/repos/freeorion/freeorion/git/commits{/sha}","comments_url":"https://api.github.com/repos/freeorion/freeorion/comments{/number}","issue_comment_url":"https://api.github.com/repos/freeorion/freeorion/issues/comments{/number}","contents_url":"https://api.github.com/repos/freeorion/freeorion/contents/{+path}","compare_url":"https://api.github.com/repos/freeorion/freeorion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freeorion/freeorion/merges","archive_url":"https://api.github.com/repos/freeorion/freeorion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freeorion/freeorion/downloads","issues_url":"https://api.github.com/repos/freeorion/freeorion/issues{/number}","pulls_url":"https://api.github.com/repos/freeorion/freeorion/pulls{/number}","milestones_url":"https://api.github.com/repos/freeorion/freeorion/milestones{/number}","notifications_url":"https://api.github.com/repos/freeorion/freeorion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freeorion/freeorion/labels{/name}","releases_url":"https://api.github.com/repos/freeorion/freeorion/releases{/id}","created_at":"2015-03-29T08:22:20Z","updated_at":"2015-04-28T05:47:47Z","pushed_at":"2015-04-28T20:35:29Z","git_url":"git://github.com/freeorion/freeorion.git","ssh_url":"git@github.com:freeorion/freeorion.git","clone_url":"https://github.com/freeorion/freeorion.git","svn_url":"https://github.com/freeorion/freeorion","homepage":"http://www.freeorion.org/","size":487096,"stargazers_count":26,"watchers_count":26,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":5,"forks":13,"open_issues":5,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/freeorion/freeorion/pulls/49"},"html":{"href":"https://github.com/freeorion/freeorion/pull/49"},"issue":{"href":"https://api.github.com/repos/freeorion/freeorion/issues/49"},"comments":{"href":"https://api.github.com/repos/freeorion/freeorion/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/freeorion/freeorion/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/freeorion/freeorion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/freeorion/freeorion/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/freeorion/freeorion/statuses/7028d9796ee6d14ce4dd0db65ca27e0034781e6b"}}}}