{"action":"created","comment":{"url":"https://api.github.com/repos/clinton56/BattleShips/pulls/comments/74904772","id":74904772,"diff_hunk":"@@ -7,45 +7,61 @@\n \n import java.util.Collection;\n \n-import static io.github.expansionteam.battleships.engine.Board.BoardBuilder;\n import static io.github.expansionteam.battleships.engine.Board.RandomShipGenerator;\n \n-public class Game {\n+class Game {\n \n-    private static final Logger log = Logger.getLogger(Game.class);\n+//    private static final Logger log = Logger.getLogger(Game.class);\n \n-    private final Board firstPlayerBoard = new BoardBuilder().build();\n-    private final Board secondPlayerBoard = new BoardBuilder().build();\n+    private final Board firstPlayerBoard;\n+    private final Board secondPlayerBoard;\n     private final RandomShipGenerator randomShipGenerator = new RandomShipGenerator();\n \n-    public Collection<Ship> getPlayerShips() {\n+    static Game createGame() {\n+        return new Game(new Board.BoardBuilder().build(), new Board.BoardBuilder().build());\n+    }\n+\n+    Game(Board firstPlayerBoard, Board secondPlayerBoard) {","path":"server/src/main/java/io/github/expansionteam/battleships/Game.java","position":24,"original_position":24,"commit_id":"b7f5018154cae6e21f96197916ec7c7a7b8195c6","original_commit_id":"b7f5018154cae6e21f96197916ec7c7a7b8195c6","user":{"login":"egolesor","id":20205803,"avatar_url":"https://avatars.githubusercontent.com/u/20205803?v=3","gravatar_id":"","url":"https://api.github.com/users/egolesor","html_url":"https://github.com/egolesor","followers_url":"https://api.github.com/users/egolesor/followers","following_url":"https://api.github.com/users/egolesor/following{/other_user}","gists_url":"https://api.github.com/users/egolesor/gists{/gist_id}","starred_url":"https://api.github.com/users/egolesor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egolesor/subscriptions","organizations_url":"https://api.github.com/users/egolesor/orgs","repos_url":"https://api.github.com/users/egolesor/repos","events_url":"https://api.github.com/users/egolesor/events{/privacy}","received_events_url":"https://api.github.com/users/egolesor/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2016-08-16T09:42:59Z","updated_at":"2016-08-16T09:42:59Z","html_url":"https://github.com/clinton56/BattleShips/pull/40#discussion_r74904772","pull_request_url":"https://api.github.com/repos/clinton56/BattleShips/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/clinton56/BattleShips/pulls/comments/74904772"},"html":{"href":"https://github.com/clinton56/BattleShips/pull/40#discussion_r74904772"},"pull_request":{"href":"https://api.github.com/repos/clinton56/BattleShips/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/clinton56/BattleShips/pulls/40","id":81123759,"html_url":"https://github.com/clinton56/BattleShips/pull/40","diff_url":"https://github.com/clinton56/BattleShips/pull/40.diff","patch_url":"https://github.com/clinton56/BattleShips/pull/40.patch","issue_url":"https://api.github.com/repos/clinton56/BattleShips/issues/40","number":40,"state":"open","locked":false,"title":"All branches was merged.","user":{"login":"sledzgrzegorz","id":6485640,"avatar_url":"https://avatars.githubusercontent.com/u/6485640?v=3","gravatar_id":"","url":"https://api.github.com/users/sledzgrzegorz","html_url":"https://github.com/sledzgrzegorz","followers_url":"https://api.github.com/users/sledzgrzegorz/followers","following_url":"https://api.github.com/users/sledzgrzegorz/following{/other_user}","gists_url":"https://api.github.com/users/sledzgrzegorz/gists{/gist_id}","starred_url":"https://api.github.com/users/sledzgrzegorz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sledzgrzegorz/subscriptions","organizations_url":"https://api.github.com/users/sledzgrzegorz/orgs","repos_url":"https://api.github.com/users/sledzgrzegorz/repos","events_url":"https://api.github.com/users/sledzgrzegorz/events{/privacy}","received_events_url":"https://api.github.com/users/sledzgrzegorz/received_events","type":"User","site_admin":false},"body":"Game was tested. It works now. All tests passed.","created_at":"2016-08-12T14:01:38Z","updated_at":"2016-08-16T09:42:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67dbe02887ee788b5b6a9a67581b178f1e0443e4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/clinton56/BattleShips/pulls/40/commits","review_comments_url":"https://api.github.com/repos/clinton56/BattleShips/pulls/40/comments","review_comment_url":"https://api.github.com/repos/clinton56/BattleShips/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clinton56/BattleShips/issues/40/comments","statuses_url":"https://api.github.com/repos/clinton56/BattleShips/statuses/b7f5018154cae6e21f96197916ec7c7a7b8195c6","head":{"label":"sledzgrzegorz:master","ref":"master","sha":"b7f5018154cae6e21f96197916ec7c7a7b8195c6","user":{"login":"sledzgrzegorz","id":6485640,"avatar_url":"https://avatars.githubusercontent.com/u/6485640?v=3","gravatar_id":"","url":"https://api.github.com/users/sledzgrzegorz","html_url":"https://github.com/sledzgrzegorz","followers_url":"https://api.github.com/users/sledzgrzegorz/followers","following_url":"https://api.github.com/users/sledzgrzegorz/following{/other_user}","gists_url":"https://api.github.com/users/sledzgrzegorz/gists{/gist_id}","starred_url":"https://api.github.com/users/sledzgrzegorz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sledzgrzegorz/subscriptions","organizations_url":"https://api.github.com/users/sledzgrzegorz/orgs","repos_url":"https://api.github.com/users/sledzgrzegorz/repos","events_url":"https://api.github.com/users/sledzgrzegorz/events{/privacy}","received_events_url":"https://api.github.com/users/sledzgrzegorz/received_events","type":"User","site_admin":false},"repo":{"id":65554771,"name":"BattleShips","full_name":"sledzgrzegorz/BattleShips","owner":{"login":"sledzgrzegorz","id":6485640,"avatar_url":"https://avatars.githubusercontent.com/u/6485640?v=3","gravatar_id":"","url":"https://api.github.com/users/sledzgrzegorz","html_url":"https://github.com/sledzgrzegorz","followers_url":"https://api.github.com/users/sledzgrzegorz/followers","following_url":"https://api.github.com/users/sledzgrzegorz/following{/other_user}","gists_url":"https://api.github.com/users/sledzgrzegorz/gists{/gist_id}","starred_url":"https://api.github.com/users/sledzgrzegorz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sledzgrzegorz/subscriptions","organizations_url":"https://api.github.com/users/sledzgrzegorz/orgs","repos_url":"https://api.github.com/users/sledzgrzegorz/repos","events_url":"https://api.github.com/users/sledzgrzegorz/events{/privacy}","received_events_url":"https://api.github.com/users/sledzgrzegorz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sledzgrzegorz/BattleShips","description":null,"fork":true,"url":"https://api.github.com/repos/sledzgrzegorz/BattleShips","forks_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/forks","keys_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/teams","hooks_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/hooks","issue_events_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/issues/events{/number}","events_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/events","assignees_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/assignees{/user}","branches_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/branches{/branch}","tags_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/tags","blobs_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/git/refs{/sha}","trees_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/statuses/{sha}","languages_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/languages","stargazers_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/stargazers","contributors_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/contributors","subscribers_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/subscribers","subscription_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/subscription","commits_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/commits{/sha}","git_commits_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/git/commits{/sha}","comments_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/comments{/number}","issue_comment_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/issues/comments{/number}","contents_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/contents/{+path}","compare_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/merges","archive_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/downloads","issues_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/issues{/number}","pulls_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/pulls{/number}","milestones_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/milestones{/number}","notifications_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/labels{/name}","releases_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/releases{/id}","deployments_url":"https://api.github.com/repos/sledzgrzegorz/BattleShips/deployments","created_at":"2016-08-12T13:21:06Z","updated_at":"2016-08-12T13:21:08Z","pushed_at":"2016-08-12T13:59:01Z","git_url":"git://github.com/sledzgrzegorz/BattleShips.git","ssh_url":"git@github.com:sledzgrzegorz/BattleShips.git","clone_url":"https://github.com/sledzgrzegorz/BattleShips.git","svn_url":"https://github.com/sledzgrzegorz/BattleShips","homepage":"","size":421,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"clinton56:master","ref":"master","sha":"a26be7db651384dbfa0ee13a563a6003982dbba3","user":{"login":"clinton56","id":1655840,"avatar_url":"https://avatars.githubusercontent.com/u/1655840?v=3","gravatar_id":"","url":"https://api.github.com/users/clinton56","html_url":"https://github.com/clinton56","followers_url":"https://api.github.com/users/clinton56/followers","following_url":"https://api.github.com/users/clinton56/following{/other_user}","gists_url":"https://api.github.com/users/clinton56/gists{/gist_id}","starred_url":"https://api.github.com/users/clinton56/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clinton56/subscriptions","organizations_url":"https://api.github.com/users/clinton56/orgs","repos_url":"https://api.github.com/users/clinton56/repos","events_url":"https://api.github.com/users/clinton56/events{/privacy}","received_events_url":"https://api.github.com/users/clinton56/received_events","type":"User","site_admin":false},"repo":{"id":63059026,"name":"BattleShips","full_name":"clinton56/BattleShips","owner":{"login":"clinton56","id":1655840,"avatar_url":"https://avatars.githubusercontent.com/u/1655840?v=3","gravatar_id":"","url":"https://api.github.com/users/clinton56","html_url":"https://github.com/clinton56","followers_url":"https://api.github.com/users/clinton56/followers","following_url":"https://api.github.com/users/clinton56/following{/other_user}","gists_url":"https://api.github.com/users/clinton56/gists{/gist_id}","starred_url":"https://api.github.com/users/clinton56/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clinton56/subscriptions","organizations_url":"https://api.github.com/users/clinton56/orgs","repos_url":"https://api.github.com/users/clinton56/repos","events_url":"https://api.github.com/users/clinton56/events{/privacy}","received_events_url":"https://api.github.com/users/clinton56/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/clinton56/BattleShips","description":null,"fork":false,"url":"https://api.github.com/repos/clinton56/BattleShips","forks_url":"https://api.github.com/repos/clinton56/BattleShips/forks","keys_url":"https://api.github.com/repos/clinton56/BattleShips/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clinton56/BattleShips/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clinton56/BattleShips/teams","hooks_url":"https://api.github.com/repos/clinton56/BattleShips/hooks","issue_events_url":"https://api.github.com/repos/clinton56/BattleShips/issues/events{/number}","events_url":"https://api.github.com/repos/clinton56/BattleShips/events","assignees_url":"https://api.github.com/repos/clinton56/BattleShips/assignees{/user}","branches_url":"https://api.github.com/repos/clinton56/BattleShips/branches{/branch}","tags_url":"https://api.github.com/repos/clinton56/BattleShips/tags","blobs_url":"https://api.github.com/repos/clinton56/BattleShips/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clinton56/BattleShips/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clinton56/BattleShips/git/refs{/sha}","trees_url":"https://api.github.com/repos/clinton56/BattleShips/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clinton56/BattleShips/statuses/{sha}","languages_url":"https://api.github.com/repos/clinton56/BattleShips/languages","stargazers_url":"https://api.github.com/repos/clinton56/BattleShips/stargazers","contributors_url":"https://api.github.com/repos/clinton56/BattleShips/contributors","subscribers_url":"https://api.github.com/repos/clinton56/BattleShips/subscribers","subscription_url":"https://api.github.com/repos/clinton56/BattleShips/subscription","commits_url":"https://api.github.com/repos/clinton56/BattleShips/commits{/sha}","git_commits_url":"https://api.github.com/repos/clinton56/BattleShips/git/commits{/sha}","comments_url":"https://api.github.com/repos/clinton56/BattleShips/comments{/number}","issue_comment_url":"https://api.github.com/repos/clinton56/BattleShips/issues/comments{/number}","contents_url":"https://api.github.com/repos/clinton56/BattleShips/contents/{+path}","compare_url":"https://api.github.com/repos/clinton56/BattleShips/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clinton56/BattleShips/merges","archive_url":"https://api.github.com/repos/clinton56/BattleShips/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clinton56/BattleShips/downloads","issues_url":"https://api.github.com/repos/clinton56/BattleShips/issues{/number}","pulls_url":"https://api.github.com/repos/clinton56/BattleShips/pulls{/number}","milestones_url":"https://api.github.com/repos/clinton56/BattleShips/milestones{/number}","notifications_url":"https://api.github.com/repos/clinton56/BattleShips/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clinton56/BattleShips/labels{/name}","releases_url":"https://api.github.com/repos/clinton56/BattleShips/releases{/id}","deployments_url":"https://api.github.com/repos/clinton56/BattleShips/deployments","created_at":"2016-07-11T10:31:58Z","updated_at":"2016-07-13T16:05:58Z","pushed_at":"2016-08-16T08:33:12Z","git_url":"git://github.com/clinton56/BattleShips.git","ssh_url":"git@github.com:clinton56/BattleShips.git","clone_url":"https://github.com/clinton56/BattleShips.git","svn_url":"https://github.com/clinton56/BattleShips","homepage":"","size":523,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clinton56/BattleShips/pulls/40"},"html":{"href":"https://github.com/clinton56/BattleShips/pull/40"},"issue":{"href":"https://api.github.com/repos/clinton56/BattleShips/issues/40"},"comments":{"href":"https://api.github.com/repos/clinton56/BattleShips/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/clinton56/BattleShips/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/clinton56/BattleShips/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clinton56/BattleShips/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/clinton56/BattleShips/statuses/b7f5018154cae6e21f96197916ec7c7a7b8195c6"}}}}
{"actor":{"display_login":"egolesor"}}