{"action":"created","comment":{"url":"https://api.github.com/repos/Oplia512/Battleships/pulls/comments/130309979","pull_request_review_id":53168486,"id":130309979,"diff_hunk":"@@ -0,0 +1,43 @@\n+package com.java_academy.gui;\n+\n+import com.java_academy.logic.fleet_settings.FleetBuilder;\n+import com.java_academy.logic.fleet_settings.ShipSetter;\n+import com.java_academy.logic.fleet_settings.shipyard_impl.Randomizer;\n+import com.java_academy.logic.model.BoardManager;\n+import com.java_academy.logic.model.Cell;\n+import com.java_academy.logic.model.Ships;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.Map;\n+\n+/**\n+ * @author Bartlomiej Janik\n+ * @since 7/31/2017\n+ */\n+public class Model {\n+    private BoardManager board;\n+    private Randomizer rand;\n+    private Ships ships;\n+    private ShipSetter fleetSetter;\n+\n+\n+    public void createRandomizer() {\n+        ships = FleetBuilder.getNonLocalizedShips();\n+        board = new BoardManager(ships, 10);\n+\n+        fleetSetter = new ShipSetter(board);\n+        rand = new Randomizer(ships, fleetSetter);\n+        rand.setFleet();\n+    }\n+\n+    public List<Integer> getShips() {\n+        List<Integer> ships = new ArrayList<>();\n+        for(Map.Entry<Integer, Cell> entry: board.getBoardMap().entrySet()) {","path":"src/main/java/com/java_academy/gui/Model.java","position":36,"original_position":36,"commit_id":"c2e0c894bb4e63d03bb3b1071696193c10c8e9e3","original_commit_id":"c2e0c894bb4e63d03bb3b1071696193c10c8e9e3","user":{"login":"Devas","id":9119159,"avatar_url":"https://avatars2.githubusercontent.com/u/9119159?v=4","gravatar_id":"","url":"https://api.github.com/users/Devas","html_url":"https://github.com/Devas","followers_url":"https://api.github.com/users/Devas/followers","following_url":"https://api.github.com/users/Devas/following{/other_user}","gists_url":"https://api.github.com/users/Devas/gists{/gist_id}","starred_url":"https://api.github.com/users/Devas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Devas/subscriptions","organizations_url":"https://api.github.com/users/Devas/orgs","repos_url":"https://api.github.com/users/Devas/repos","events_url":"https://api.github.com/users/Devas/events{/privacy}","received_events_url":"https://api.github.com/users/Devas/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2017-07-31T09:37:22Z","updated_at":"2017-07-31T09:47:56Z","html_url":"https://github.com/Oplia512/Battleships/pull/11#discussion_r130309979","pull_request_url":"https://api.github.com/repos/Oplia512/Battleships/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/Oplia512/Battleships/pulls/comments/130309979"},"html":{"href":"https://github.com/Oplia512/Battleships/pull/11#discussion_r130309979"},"pull_request":{"href":"https://api.github.com/repos/Oplia512/Battleships/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/Oplia512/Battleships/pulls/11","id":133201187,"html_url":"https://github.com/Oplia512/Battleships/pull/11","diff_url":"https://github.com/Oplia512/Battleships/pull/11.diff","patch_url":"https://github.com/Oplia512/Battleships/pull/11.patch","issue_url":"https://api.github.com/repos/Oplia512/Battleships/issues/11","number":11,"state":"open","locked":false,"title":"GUI with basic logic","user":{"login":"Dzionek95","id":17837855,"avatar_url":"https://avatars0.githubusercontent.com/u/17837855?v=4","gravatar_id":"","url":"https://api.github.com/users/Dzionek95","html_url":"https://github.com/Dzionek95","followers_url":"https://api.github.com/users/Dzionek95/followers","following_url":"https://api.github.com/users/Dzionek95/following{/other_user}","gists_url":"https://api.github.com/users/Dzionek95/gists{/gist_id}","starred_url":"https://api.github.com/users/Dzionek95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dzionek95/subscriptions","organizations_url":"https://api.github.com/users/Dzionek95/orgs","repos_url":"https://api.github.com/users/Dzionek95/repos","events_url":"https://api.github.com/users/Dzionek95/events{/privacy}","received_events_url":"https://api.github.com/users/Dzionek95/received_events","type":"User","site_admin":false},"body":"Hello! \r\n\r\nOur latest feature is possibility to draw random ships on board and shoot to them on your left board. Red if  ship has been spotted blue if not. ","created_at":"2017-07-31T09:28:17Z","updated_at":"2017-07-31T09:47:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f021550096d5c70dd7dbc25cbf620c604e21edf","assignee":null,"assignees":[],"requested_reviewers":[{"login":"kukulastudent","id":22767941,"avatar_url":"https://avatars1.githubusercontent.com/u/22767941?v=4","gravatar_id":"","url":"https://api.github.com/users/kukulastudent","html_url":"https://github.com/kukulastudent","followers_url":"https://api.github.com/users/kukulastudent/followers","following_url":"https://api.github.com/users/kukulastudent/following{/other_user}","gists_url":"https://api.github.com/users/kukulastudent/gists{/gist_id}","starred_url":"https://api.github.com/users/kukulastudent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kukulastudent/subscriptions","organizations_url":"https://api.github.com/users/kukulastudent/orgs","repos_url":"https://api.github.com/users/kukulastudent/repos","events_url":"https://api.github.com/users/kukulastudent/events{/privacy}","received_events_url":"https://api.github.com/users/kukulastudent/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Oplia512/Battleships/pulls/11/commits","review_comments_url":"https://api.github.com/repos/Oplia512/Battleships/pulls/11/comments","review_comment_url":"https://api.github.com/repos/Oplia512/Battleships/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Oplia512/Battleships/issues/11/comments","statuses_url":"https://api.github.com/repos/Oplia512/Battleships/statuses/c2e0c894bb4e63d03bb3b1071696193c10c8e9e3","head":{"label":"Oplia512:devs","ref":"devs","sha":"c2e0c894bb4e63d03bb3b1071696193c10c8e9e3","user":{"login":"Oplia512","id":5834098,"avatar_url":"https://avatars3.githubusercontent.com/u/5834098?v=4","gravatar_id":"","url":"https://api.github.com/users/Oplia512","html_url":"https://github.com/Oplia512","followers_url":"https://api.github.com/users/Oplia512/followers","following_url":"https://api.github.com/users/Oplia512/following{/other_user}","gists_url":"https://api.github.com/users/Oplia512/gists{/gist_id}","starred_url":"https://api.github.com/users/Oplia512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oplia512/subscriptions","organizations_url":"https://api.github.com/users/Oplia512/orgs","repos_url":"https://api.github.com/users/Oplia512/repos","events_url":"https://api.github.com/users/Oplia512/events{/privacy}","received_events_url":"https://api.github.com/users/Oplia512/received_events","type":"User","site_admin":false},"repo":{"id":98280990,"name":"Battleships","full_name":"Oplia512/Battleships","owner":{"login":"Oplia512","id":5834098,"avatar_url":"https://avatars3.githubusercontent.com/u/5834098?v=4","gravatar_id":"","url":"https://api.github.com/users/Oplia512","html_url":"https://github.com/Oplia512","followers_url":"https://api.github.com/users/Oplia512/followers","following_url":"https://api.github.com/users/Oplia512/following{/other_user}","gists_url":"https://api.github.com/users/Oplia512/gists{/gist_id}","starred_url":"https://api.github.com/users/Oplia512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oplia512/subscriptions","organizations_url":"https://api.github.com/users/Oplia512/orgs","repos_url":"https://api.github.com/users/Oplia512/repos","events_url":"https://api.github.com/users/Oplia512/events{/privacy}","received_events_url":"https://api.github.com/users/Oplia512/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Oplia512/Battleships","description":"Battleships","fork":false,"url":"https://api.github.com/repos/Oplia512/Battleships","forks_url":"https://api.github.com/repos/Oplia512/Battleships/forks","keys_url":"https://api.github.com/repos/Oplia512/Battleships/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Oplia512/Battleships/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Oplia512/Battleships/teams","hooks_url":"https://api.github.com/repos/Oplia512/Battleships/hooks","issue_events_url":"https://api.github.com/repos/Oplia512/Battleships/issues/events{/number}","events_url":"https://api.github.com/repos/Oplia512/Battleships/events","assignees_url":"https://api.github.com/repos/Oplia512/Battleships/assignees{/user}","branches_url":"https://api.github.com/repos/Oplia512/Battleships/branches{/branch}","tags_url":"https://api.github.com/repos/Oplia512/Battleships/tags","blobs_url":"https://api.github.com/repos/Oplia512/Battleships/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Oplia512/Battleships/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Oplia512/Battleships/git/refs{/sha}","trees_url":"https://api.github.com/repos/Oplia512/Battleships/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Oplia512/Battleships/statuses/{sha}","languages_url":"https://api.github.com/repos/Oplia512/Battleships/languages","stargazers_url":"https://api.github.com/repos/Oplia512/Battleships/stargazers","contributors_url":"https://api.github.com/repos/Oplia512/Battleships/contributors","subscribers_url":"https://api.github.com/repos/Oplia512/Battleships/subscribers","subscription_url":"https://api.github.com/repos/Oplia512/Battleships/subscription","commits_url":"https://api.github.com/repos/Oplia512/Battleships/commits{/sha}","git_commits_url":"https://api.github.com/repos/Oplia512/Battleships/git/commits{/sha}","comments_url":"https://api.github.com/repos/Oplia512/Battleships/comments{/number}","issue_comment_url":"https://api.github.com/repos/Oplia512/Battleships/issues/comments{/number}","contents_url":"https://api.github.com/repos/Oplia512/Battleships/contents/{+path}","compare_url":"https://api.github.com/repos/Oplia512/Battleships/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Oplia512/Battleships/merges","archive_url":"https://api.github.com/repos/Oplia512/Battleships/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Oplia512/Battleships/downloads","issues_url":"https://api.github.com/repos/Oplia512/Battleships/issues{/number}","pulls_url":"https://api.github.com/repos/Oplia512/Battleships/pulls{/number}","milestones_url":"https://api.github.com/repos/Oplia512/Battleships/milestones{/number}","notifications_url":"https://api.github.com/repos/Oplia512/Battleships/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Oplia512/Battleships/labels{/name}","releases_url":"https://api.github.com/repos/Oplia512/Battleships/releases{/id}","deployments_url":"https://api.github.com/repos/Oplia512/Battleships/deployments","created_at":"2017-07-25T08:04:58Z","updated_at":"2017-07-25T11:19:48Z","pushed_at":"2017-07-31T09:28:18Z","git_url":"git://github.com/Oplia512/Battleships.git","ssh_url":"git@github.com:Oplia512/Battleships.git","clone_url":"https://github.com/Oplia512/Battleships.git","svn_url":"https://github.com/Oplia512/Battleships","homepage":null,"size":103,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Oplia512:master","ref":"master","sha":"47cec9478380fddf2a2f8d7db9aeb9acf2ca3d39","user":{"login":"Oplia512","id":5834098,"avatar_url":"https://avatars3.githubusercontent.com/u/5834098?v=4","gravatar_id":"","url":"https://api.github.com/users/Oplia512","html_url":"https://github.com/Oplia512","followers_url":"https://api.github.com/users/Oplia512/followers","following_url":"https://api.github.com/users/Oplia512/following{/other_user}","gists_url":"https://api.github.com/users/Oplia512/gists{/gist_id}","starred_url":"https://api.github.com/users/Oplia512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oplia512/subscriptions","organizations_url":"https://api.github.com/users/Oplia512/orgs","repos_url":"https://api.github.com/users/Oplia512/repos","events_url":"https://api.github.com/users/Oplia512/events{/privacy}","received_events_url":"https://api.github.com/users/Oplia512/received_events","type":"User","site_admin":false},"repo":{"id":98280990,"name":"Battleships","full_name":"Oplia512/Battleships","owner":{"login":"Oplia512","id":5834098,"avatar_url":"https://avatars3.githubusercontent.com/u/5834098?v=4","gravatar_id":"","url":"https://api.github.com/users/Oplia512","html_url":"https://github.com/Oplia512","followers_url":"https://api.github.com/users/Oplia512/followers","following_url":"https://api.github.com/users/Oplia512/following{/other_user}","gists_url":"https://api.github.com/users/Oplia512/gists{/gist_id}","starred_url":"https://api.github.com/users/Oplia512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oplia512/subscriptions","organizations_url":"https://api.github.com/users/Oplia512/orgs","repos_url":"https://api.github.com/users/Oplia512/repos","events_url":"https://api.github.com/users/Oplia512/events{/privacy}","received_events_url":"https://api.github.com/users/Oplia512/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Oplia512/Battleships","description":"Battleships","fork":false,"url":"https://api.github.com/repos/Oplia512/Battleships","forks_url":"https://api.github.com/repos/Oplia512/Battleships/forks","keys_url":"https://api.github.com/repos/Oplia512/Battleships/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Oplia512/Battleships/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Oplia512/Battleships/teams","hooks_url":"https://api.github.com/repos/Oplia512/Battleships/hooks","issue_events_url":"https://api.github.com/repos/Oplia512/Battleships/issues/events{/number}","events_url":"https://api.github.com/repos/Oplia512/Battleships/events","assignees_url":"https://api.github.com/repos/Oplia512/Battleships/assignees{/user}","branches_url":"https://api.github.com/repos/Oplia512/Battleships/branches{/branch}","tags_url":"https://api.github.com/repos/Oplia512/Battleships/tags","blobs_url":"https://api.github.com/repos/Oplia512/Battleships/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Oplia512/Battleships/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Oplia512/Battleships/git/refs{/sha}","trees_url":"https://api.github.com/repos/Oplia512/Battleships/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Oplia512/Battleships/statuses/{sha}","languages_url":"https://api.github.com/repos/Oplia512/Battleships/languages","stargazers_url":"https://api.github.com/repos/Oplia512/Battleships/stargazers","contributors_url":"https://api.github.com/repos/Oplia512/Battleships/contributors","subscribers_url":"https://api.github.com/repos/Oplia512/Battleships/subscribers","subscription_url":"https://api.github.com/repos/Oplia512/Battleships/subscription","commits_url":"https://api.github.com/repos/Oplia512/Battleships/commits{/sha}","git_commits_url":"https://api.github.com/repos/Oplia512/Battleships/git/commits{/sha}","comments_url":"https://api.github.com/repos/Oplia512/Battleships/comments{/number}","issue_comment_url":"https://api.github.com/repos/Oplia512/Battleships/issues/comments{/number}","contents_url":"https://api.github.com/repos/Oplia512/Battleships/contents/{+path}","compare_url":"https://api.github.com/repos/Oplia512/Battleships/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Oplia512/Battleships/merges","archive_url":"https://api.github.com/repos/Oplia512/Battleships/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Oplia512/Battleships/downloads","issues_url":"https://api.github.com/repos/Oplia512/Battleships/issues{/number}","pulls_url":"https://api.github.com/repos/Oplia512/Battleships/pulls{/number}","milestones_url":"https://api.github.com/repos/Oplia512/Battleships/milestones{/number}","notifications_url":"https://api.github.com/repos/Oplia512/Battleships/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Oplia512/Battleships/labels{/name}","releases_url":"https://api.github.com/repos/Oplia512/Battleships/releases{/id}","deployments_url":"https://api.github.com/repos/Oplia512/Battleships/deployments","created_at":"2017-07-25T08:04:58Z","updated_at":"2017-07-25T11:19:48Z","pushed_at":"2017-07-31T09:28:18Z","git_url":"git://github.com/Oplia512/Battleships.git","ssh_url":"git@github.com:Oplia512/Battleships.git","clone_url":"https://github.com/Oplia512/Battleships.git","svn_url":"https://github.com/Oplia512/Battleships","homepage":null,"size":103,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Oplia512/Battleships/pulls/11"},"html":{"href":"https://github.com/Oplia512/Battleships/pull/11"},"issue":{"href":"https://api.github.com/repos/Oplia512/Battleships/issues/11"},"comments":{"href":"https://api.github.com/repos/Oplia512/Battleships/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/Oplia512/Battleships/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/Oplia512/Battleships/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Oplia512/Battleships/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/Oplia512/Battleships/statuses/c2e0c894bb4e63d03bb3b1071696193c10c8e9e3"}}}}
{"actor":{"display_login":"Devas"}}