{"action":"closed","number":1132,"pull_request":{"url":"https://api.github.com/repos/KC3Kai/KC3Kai/pulls/1132","id":58716347,"html_url":"https://github.com/KC3Kai/KC3Kai/pull/1132","diff_url":"https://github.com/KC3Kai/KC3Kai/pull/1132.diff","patch_url":"https://github.com/KC3Kai/KC3Kai/pull/1132.patch","issue_url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/1132","number":1132,"state":"closed","locked":false,"title":"Battle Rank Prediction","user":{"login":"Javran","id":1096354,"avatar_url":"https://avatars.githubusercontent.com/u/1096354?v=3","gravatar_id":"","url":"https://api.github.com/users/Javran","html_url":"https://github.com/Javran","followers_url":"https://api.github.com/users/Javran/followers","following_url":"https://api.github.com/users/Javran/following{/other_user}","gists_url":"https://api.github.com/users/Javran/gists{/gist_id}","starred_url":"https://api.github.com/users/Javran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Javran/subscriptions","organizations_url":"https://api.github.com/users/Javran/orgs","repos_url":"https://api.github.com/users/Javran/repos","events_url":"https://api.github.com/users/Javran/events{/privacy}","received_events_url":"https://api.github.com/users/Javran/received_events","type":"User","site_admin":false},"body":"related: #728\r\n\r\nalgorithm translated from:\r\nhttps://github.com/KC3Kai/KC3Kai/issues/728#issuecomment-139681987\r\n\r\nsee [KC3Node.predictRank](https://github.com/Javran/KC3Kai/blob/6f7cc88cb89807192433a43f227d4dcb5fac510b/src/library/objects/Node.js#L18-L124)\r\n\r\ncombined fleet are not yet taken into account, but basically you just need to construct `beginHPs` and `endHPs` with 12 elements in `.ally` property (for both main fleet and escort fleet) and feed it to KC3Node.predictRank.\r\n\r\nnothing changed in UI, see Console:\r\n\r\n![2016-02-09_031630_3840x1080_scrot](https://cloud.githubusercontent.com/assets/1096354/12910789/8eb74042-cedb-11e5-9e50-805cc7212c2f.png)\r\n\r\n- tested on day battle, and following night battle\r\n- not tested on nodes that starts at night battles","created_at":"2016-02-09T08:17:48Z","updated_at":"2016-02-10T06:17:01Z","closed_at":"2016-02-10T06:17:01Z","merged_at":null,"merge_commit_sha":"52adeebffbadcd70bb403a1602a2f4be8b9443cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KC3Kai/KC3Kai/pulls/1132/commits","review_comments_url":"https://api.github.com/repos/KC3Kai/KC3Kai/pulls/1132/comments","review_comment_url":"https://api.github.com/repos/KC3Kai/KC3Kai/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/1132/comments","statuses_url":"https://api.github.com/repos/KC3Kai/KC3Kai/statuses/83b1350ea4bfeccf1b471f8f7c58f8938701b5df","head":{"label":"Javran:master","ref":"master","sha":"83b1350ea4bfeccf1b471f8f7c58f8938701b5df","user":{"login":"Javran","id":1096354,"avatar_url":"https://avatars.githubusercontent.com/u/1096354?v=3","gravatar_id":"","url":"https://api.github.com/users/Javran","html_url":"https://github.com/Javran","followers_url":"https://api.github.com/users/Javran/followers","following_url":"https://api.github.com/users/Javran/following{/other_user}","gists_url":"https://api.github.com/users/Javran/gists{/gist_id}","starred_url":"https://api.github.com/users/Javran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Javran/subscriptions","organizations_url":"https://api.github.com/users/Javran/orgs","repos_url":"https://api.github.com/users/Javran/repos","events_url":"https://api.github.com/users/Javran/events{/privacy}","received_events_url":"https://api.github.com/users/Javran/received_events","type":"User","site_admin":false},"repo":{"id":37558945,"name":"KC3Kai","full_name":"Javran/KC3Kai","owner":{"login":"Javran","id":1096354,"avatar_url":"https://avatars.githubusercontent.com/u/1096354?v=3","gravatar_id":"","url":"https://api.github.com/users/Javran","html_url":"https://github.com/Javran","followers_url":"https://api.github.com/users/Javran/followers","following_url":"https://api.github.com/users/Javran/following{/other_user}","gists_url":"https://api.github.com/users/Javran/gists{/gist_id}","starred_url":"https://api.github.com/users/Javran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Javran/subscriptions","organizations_url":"https://api.github.com/users/Javran/orgs","repos_url":"https://api.github.com/users/Javran/repos","events_url":"https://api.github.com/users/Javran/events{/privacy}","received_events_url":"https://api.github.com/users/Javran/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Javran/KC3Kai","description":"Kantai Collection Game Viewer and Tools","fork":true,"url":"https://api.github.com/repos/Javran/KC3Kai","forks_url":"https://api.github.com/repos/Javran/KC3Kai/forks","keys_url":"https://api.github.com/repos/Javran/KC3Kai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Javran/KC3Kai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Javran/KC3Kai/teams","hooks_url":"https://api.github.com/repos/Javran/KC3Kai/hooks","issue_events_url":"https://api.github.com/repos/Javran/KC3Kai/issues/events{/number}","events_url":"https://api.github.com/repos/Javran/KC3Kai/events","assignees_url":"https://api.github.com/repos/Javran/KC3Kai/assignees{/user}","branches_url":"https://api.github.com/repos/Javran/KC3Kai/branches{/branch}","tags_url":"https://api.github.com/repos/Javran/KC3Kai/tags","blobs_url":"https://api.github.com/repos/Javran/KC3Kai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Javran/KC3Kai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Javran/KC3Kai/git/refs{/sha}","trees_url":"https://api.github.com/repos/Javran/KC3Kai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Javran/KC3Kai/statuses/{sha}","languages_url":"https://api.github.com/repos/Javran/KC3Kai/languages","stargazers_url":"https://api.github.com/repos/Javran/KC3Kai/stargazers","contributors_url":"https://api.github.com/repos/Javran/KC3Kai/contributors","subscribers_url":"https://api.github.com/repos/Javran/KC3Kai/subscribers","subscription_url":"https://api.github.com/repos/Javran/KC3Kai/subscription","commits_url":"https://api.github.com/repos/Javran/KC3Kai/commits{/sha}","git_commits_url":"https://api.github.com/repos/Javran/KC3Kai/git/commits{/sha}","comments_url":"https://api.github.com/repos/Javran/KC3Kai/comments{/number}","issue_comment_url":"https://api.github.com/repos/Javran/KC3Kai/issues/comments{/number}","contents_url":"https://api.github.com/repos/Javran/KC3Kai/contents/{+path}","compare_url":"https://api.github.com/repos/Javran/KC3Kai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Javran/KC3Kai/merges","archive_url":"https://api.github.com/repos/Javran/KC3Kai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Javran/KC3Kai/downloads","issues_url":"https://api.github.com/repos/Javran/KC3Kai/issues{/number}","pulls_url":"https://api.github.com/repos/Javran/KC3Kai/pulls{/number}","milestones_url":"https://api.github.com/repos/Javran/KC3Kai/milestones{/number}","notifications_url":"https://api.github.com/repos/Javran/KC3Kai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Javran/KC3Kai/labels{/name}","releases_url":"https://api.github.com/repos/Javran/KC3Kai/releases{/id}","deployments_url":"https://api.github.com/repos/Javran/KC3Kai/deployments","created_at":"2015-06-16T22:16:17Z","updated_at":"2016-01-30T16:08:42Z","pushed_at":"2016-02-10T06:17:01Z","git_url":"git://github.com/Javran/KC3Kai.git","ssh_url":"git@github.com:Javran/KC3Kai.git","clone_url":"https://github.com/Javran/KC3Kai.git","svn_url":"https://github.com/Javran/KC3Kai","homepage":null,"size":12976,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"KC3Kai:master","ref":"master","sha":"83b1350ea4bfeccf1b471f8f7c58f8938701b5df","user":{"login":"KC3Kai","id":13912162,"avatar_url":"https://avatars.githubusercontent.com/u/13912162?v=3","gravatar_id":"","url":"https://api.github.com/users/KC3Kai","html_url":"https://github.com/KC3Kai","followers_url":"https://api.github.com/users/KC3Kai/followers","following_url":"https://api.github.com/users/KC3Kai/following{/other_user}","gists_url":"https://api.github.com/users/KC3Kai/gists{/gist_id}","starred_url":"https://api.github.com/users/KC3Kai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KC3Kai/subscriptions","organizations_url":"https://api.github.com/users/KC3Kai/orgs","repos_url":"https://api.github.com/users/KC3Kai/repos","events_url":"https://api.github.com/users/KC3Kai/events{/privacy}","received_events_url":"https://api.github.com/users/KC3Kai/received_events","type":"Organization","site_admin":false},"repo":{"id":33541887,"name":"KC3Kai","full_name":"KC3Kai/KC3Kai","owner":{"login":"KC3Kai","id":13912162,"avatar_url":"https://avatars.githubusercontent.com/u/13912162?v=3","gravatar_id":"","url":"https://api.github.com/users/KC3Kai","html_url":"https://github.com/KC3Kai","followers_url":"https://api.github.com/users/KC3Kai/followers","following_url":"https://api.github.com/users/KC3Kai/following{/other_user}","gists_url":"https://api.github.com/users/KC3Kai/gists{/gist_id}","starred_url":"https://api.github.com/users/KC3Kai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KC3Kai/subscriptions","organizations_url":"https://api.github.com/users/KC3Kai/orgs","repos_url":"https://api.github.com/users/KC3Kai/repos","events_url":"https://api.github.com/users/KC3Kai/events{/privacy}","received_events_url":"https://api.github.com/users/KC3Kai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KC3Kai/KC3Kai","description":"Kantai Collection Game Viewer and Tools","fork":false,"url":"https://api.github.com/repos/KC3Kai/KC3Kai","forks_url":"https://api.github.com/repos/KC3Kai/KC3Kai/forks","keys_url":"https://api.github.com/repos/KC3Kai/KC3Kai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KC3Kai/KC3Kai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KC3Kai/KC3Kai/teams","hooks_url":"https://api.github.com/repos/KC3Kai/KC3Kai/hooks","issue_events_url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/events{/number}","events_url":"https://api.github.com/repos/KC3Kai/KC3Kai/events","assignees_url":"https://api.github.com/repos/KC3Kai/KC3Kai/assignees{/user}","branches_url":"https://api.github.com/repos/KC3Kai/KC3Kai/branches{/branch}","tags_url":"https://api.github.com/repos/KC3Kai/KC3Kai/tags","blobs_url":"https://api.github.com/repos/KC3Kai/KC3Kai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KC3Kai/KC3Kai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KC3Kai/KC3Kai/git/refs{/sha}","trees_url":"https://api.github.com/repos/KC3Kai/KC3Kai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KC3Kai/KC3Kai/statuses/{sha}","languages_url":"https://api.github.com/repos/KC3Kai/KC3Kai/languages","stargazers_url":"https://api.github.com/repos/KC3Kai/KC3Kai/stargazers","contributors_url":"https://api.github.com/repos/KC3Kai/KC3Kai/contributors","subscribers_url":"https://api.github.com/repos/KC3Kai/KC3Kai/subscribers","subscription_url":"https://api.github.com/repos/KC3Kai/KC3Kai/subscription","commits_url":"https://api.github.com/repos/KC3Kai/KC3Kai/commits{/sha}","git_commits_url":"https://api.github.com/repos/KC3Kai/KC3Kai/git/commits{/sha}","comments_url":"https://api.github.com/repos/KC3Kai/KC3Kai/comments{/number}","issue_comment_url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/comments{/number}","contents_url":"https://api.github.com/repos/KC3Kai/KC3Kai/contents/{+path}","compare_url":"https://api.github.com/repos/KC3Kai/KC3Kai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KC3Kai/KC3Kai/merges","archive_url":"https://api.github.com/repos/KC3Kai/KC3Kai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KC3Kai/KC3Kai/downloads","issues_url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues{/number}","pulls_url":"https://api.github.com/repos/KC3Kai/KC3Kai/pulls{/number}","milestones_url":"https://api.github.com/repos/KC3Kai/KC3Kai/milestones{/number}","notifications_url":"https://api.github.com/repos/KC3Kai/KC3Kai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KC3Kai/KC3Kai/labels{/name}","releases_url":"https://api.github.com/repos/KC3Kai/KC3Kai/releases{/id}","deployments_url":"https://api.github.com/repos/KC3Kai/KC3Kai/deployments","created_at":"2015-04-07T12:30:52Z","updated_at":"2016-02-09T10:08:22Z","pushed_at":"2016-02-10T06:11:39Z","git_url":"git://github.com/KC3Kai/KC3Kai.git","ssh_url":"git@github.com:KC3Kai/KC3Kai.git","clone_url":"https://github.com/KC3Kai/KC3Kai.git","svn_url":"https://github.com/KC3Kai/KC3Kai","homepage":null,"size":14540,"stargazers_count":98,"watchers_count":98,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":73,"mirror_url":null,"open_issues_count":195,"forks":73,"open_issues":195,"watchers":98,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KC3Kai/KC3Kai/pulls/1132"},"html":{"href":"https://github.com/KC3Kai/KC3Kai/pull/1132"},"issue":{"href":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/1132"},"comments":{"href":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/1132/comments"},"review_comments":{"href":"https://api.github.com/repos/KC3Kai/KC3Kai/pulls/1132/comments"},"review_comment":{"href":"https://api.github.com/repos/KC3Kai/KC3Kai/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KC3Kai/KC3Kai/pulls/1132/commits"},"statuses":{"href":"https://api.github.com/repos/KC3Kai/KC3Kai/statuses/83b1350ea4bfeccf1b471f8f7c58f8938701b5df"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":2,"review_comments":0,"commits":0,"additions":0,"deletions":0,"changed_files":0}}