{"action":"created","comment":{"url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/pulls/comments/49899543","id":49899543,"diff_hunk":"@@ -0,0 +1,203 @@\n+package uk.ac.cam.ap886.oopjava.supervisionProjects.Hangman;\n+\n+import java.awt.ComponentOrientation;\n+import java.awt.Dimension;\n+import java.awt.EventQueue;\n+import java.awt.Font;\n+\n+import javax.swing.BoxLayout;\n+import javax.swing.JFrame;\n+import javax.swing.JLabel;\n+import javax.swing.JOptionPane;\n+import javax.swing.JPanel;\n+import javax.swing.JSeparator;\n+\n+public class GUIMainWindow implements UserInterface{\n+\tGame game;\n+\tboolean firstRun=true;\n+\t\n+\tJLabel lblName;\n+\tJLabel lblGamesWon;\n+\tJLabel lblLettersTried;\n+\tJLabel openedWord;\n+\tJLabel lblStatus;\n+\tGUIGamePanel hangmanPanel;\n+\n+\tpublic GUIMainWindow (Game newGame){","path":"Supervision Work/src/uk/ac/cam/ap886/oopjava/supervisionProjects/Hangman/GUIMainWindow.java","position":26,"original_position":26,"commit_id":"39191dbfc1da8eaa86703448841f5225466cb3b2","original_commit_id":"39191dbfc1da8eaa86703448841f5225466cb3b2","user":{"login":"hmercer","id":14129055,"avatar_url":"https://avatars.githubusercontent.com/u/14129055?v=3","gravatar_id":"","url":"https://api.github.com/users/hmercer","html_url":"https://github.com/hmercer","followers_url":"https://api.github.com/users/hmercer/followers","following_url":"https://api.github.com/users/hmercer/following{/other_user}","gists_url":"https://api.github.com/users/hmercer/gists{/gist_id}","starred_url":"https://api.github.com/users/hmercer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmercer/subscriptions","organizations_url":"https://api.github.com/users/hmercer/orgs","repos_url":"https://api.github.com/users/hmercer/repos","events_url":"https://api.github.com/users/hmercer/events{/privacy}","received_events_url":"https://api.github.com/users/hmercer/received_events","type":"User","site_admin":false},"body":"I think passing around the `Game` object leads to more coupling than is necessary between the GUI and `Game`.  An alternative could be for the `Game` object to provide the necessary information when it calls the GUI method, for example passing the hangman stage to `wrongGuess`","created_at":"2016-01-15T20:12:15Z","updated_at":"2016-01-15T20:12:15Z","html_url":"https://github.com/appetrosyan/JavaCodeReview/pull/1#discussion_r49899543","pull_request_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/appetrosyan/JavaCodeReview/pulls/comments/49899543"},"html":{"href":"https://github.com/appetrosyan/JavaCodeReview/pull/1#discussion_r49899543"},"pull_request":{"href":"https://api.github.com/repos/appetrosyan/JavaCodeReview/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/pulls/1","id":56212677,"html_url":"https://github.com/appetrosyan/JavaCodeReview/pull/1","diff_url":"https://github.com/appetrosyan/JavaCodeReview/pull/1.diff","patch_url":"https://github.com/appetrosyan/JavaCodeReview/pull/1.patch","issue_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/issues/1","number":1,"state":"closed","locked":false,"title":"heam2 Code Review","user":{"login":"hmercer","id":14129055,"avatar_url":"https://avatars.githubusercontent.com/u/14129055?v=3","gravatar_id":"","url":"https://api.github.com/users/hmercer","html_url":"https://github.com/hmercer","followers_url":"https://api.github.com/users/hmercer/followers","following_url":"https://api.github.com/users/hmercer/following{/other_user}","gists_url":"https://api.github.com/users/hmercer/gists{/gist_id}","starred_url":"https://api.github.com/users/hmercer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmercer/subscriptions","organizations_url":"https://api.github.com/users/hmercer/orgs","repos_url":"https://api.github.com/users/hmercer/repos","events_url":"https://api.github.com/users/hmercer/events{/privacy}","received_events_url":"https://api.github.com/users/hmercer/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-15T19:44:32Z","updated_at":"2016-01-15T20:12:15Z","closed_at":"2016-01-15T20:11:11Z","merged_at":"2016-01-15T20:11:11Z","merge_commit_sha":"2d65e192c46f5adbc01f3c7e3d34d55a1ae024af","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/pulls/1/commits","review_comments_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/pulls/1/comments","review_comment_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/pulls/comments{/number}","comments_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/issues/1/comments","statuses_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/statuses/39191dbfc1da8eaa86703448841f5225466cb3b2","head":{"label":"appetrosyan:heam2-review","ref":"heam2-review","sha":"39191dbfc1da8eaa86703448841f5225466cb3b2","user":{"login":"appetrosyan","id":15856657,"avatar_url":"https://avatars.githubusercontent.com/u/15856657?v=3","gravatar_id":"","url":"https://api.github.com/users/appetrosyan","html_url":"https://github.com/appetrosyan","followers_url":"https://api.github.com/users/appetrosyan/followers","following_url":"https://api.github.com/users/appetrosyan/following{/other_user}","gists_url":"https://api.github.com/users/appetrosyan/gists{/gist_id}","starred_url":"https://api.github.com/users/appetrosyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appetrosyan/subscriptions","organizations_url":"https://api.github.com/users/appetrosyan/orgs","repos_url":"https://api.github.com/users/appetrosyan/repos","events_url":"https://api.github.com/users/appetrosyan/events{/privacy}","received_events_url":"https://api.github.com/users/appetrosyan/received_events","type":"User","site_admin":false},"repo":{"id":49650381,"name":"JavaCodeReview","full_name":"appetrosyan/JavaCodeReview","owner":{"login":"appetrosyan","id":15856657,"avatar_url":"https://avatars.githubusercontent.com/u/15856657?v=3","gravatar_id":"","url":"https://api.github.com/users/appetrosyan","html_url":"https://github.com/appetrosyan","followers_url":"https://api.github.com/users/appetrosyan/followers","following_url":"https://api.github.com/users/appetrosyan/following{/other_user}","gists_url":"https://api.github.com/users/appetrosyan/gists{/gist_id}","starred_url":"https://api.github.com/users/appetrosyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appetrosyan/subscriptions","organizations_url":"https://api.github.com/users/appetrosyan/orgs","repos_url":"https://api.github.com/users/appetrosyan/repos","events_url":"https://api.github.com/users/appetrosyan/events{/privacy}","received_events_url":"https://api.github.com/users/appetrosyan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/appetrosyan/JavaCodeReview","description":"Repository for Code Review","fork":false,"url":"https://api.github.com/repos/appetrosyan/JavaCodeReview","forks_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/forks","keys_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/teams","hooks_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/hooks","issue_events_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/issues/events{/number}","events_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/events","assignees_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/assignees{/user}","branches_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/branches{/branch}","tags_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/tags","blobs_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/git/refs{/sha}","trees_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/statuses/{sha}","languages_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/languages","stargazers_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/stargazers","contributors_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/contributors","subscribers_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/subscribers","subscription_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/subscription","commits_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/commits{/sha}","git_commits_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/git/commits{/sha}","comments_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/comments{/number}","issue_comment_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/issues/comments{/number}","contents_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/contents/{+path}","compare_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/merges","archive_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/downloads","issues_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/issues{/number}","pulls_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/pulls{/number}","milestones_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/milestones{/number}","notifications_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/labels{/name}","releases_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/releases{/id}","created_at":"2016-01-14T13:55:26Z","updated_at":"2016-01-14T13:56:30Z","pushed_at":"2016-01-15T20:11:11Z","git_url":"git://github.com/appetrosyan/JavaCodeReview.git","ssh_url":"git@github.com:appetrosyan/JavaCodeReview.git","clone_url":"https://github.com/appetrosyan/JavaCodeReview.git","svn_url":"https://github.com/appetrosyan/JavaCodeReview","homepage":null,"size":680,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"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":"appetrosyan:empty","ref":"empty","sha":"83bfc448bd3056208c2e091ea9660878478954f9","user":{"login":"appetrosyan","id":15856657,"avatar_url":"https://avatars.githubusercontent.com/u/15856657?v=3","gravatar_id":"","url":"https://api.github.com/users/appetrosyan","html_url":"https://github.com/appetrosyan","followers_url":"https://api.github.com/users/appetrosyan/followers","following_url":"https://api.github.com/users/appetrosyan/following{/other_user}","gists_url":"https://api.github.com/users/appetrosyan/gists{/gist_id}","starred_url":"https://api.github.com/users/appetrosyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appetrosyan/subscriptions","organizations_url":"https://api.github.com/users/appetrosyan/orgs","repos_url":"https://api.github.com/users/appetrosyan/repos","events_url":"https://api.github.com/users/appetrosyan/events{/privacy}","received_events_url":"https://api.github.com/users/appetrosyan/received_events","type":"User","site_admin":false},"repo":{"id":49650381,"name":"JavaCodeReview","full_name":"appetrosyan/JavaCodeReview","owner":{"login":"appetrosyan","id":15856657,"avatar_url":"https://avatars.githubusercontent.com/u/15856657?v=3","gravatar_id":"","url":"https://api.github.com/users/appetrosyan","html_url":"https://github.com/appetrosyan","followers_url":"https://api.github.com/users/appetrosyan/followers","following_url":"https://api.github.com/users/appetrosyan/following{/other_user}","gists_url":"https://api.github.com/users/appetrosyan/gists{/gist_id}","starred_url":"https://api.github.com/users/appetrosyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appetrosyan/subscriptions","organizations_url":"https://api.github.com/users/appetrosyan/orgs","repos_url":"https://api.github.com/users/appetrosyan/repos","events_url":"https://api.github.com/users/appetrosyan/events{/privacy}","received_events_url":"https://api.github.com/users/appetrosyan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/appetrosyan/JavaCodeReview","description":"Repository for Code Review","fork":false,"url":"https://api.github.com/repos/appetrosyan/JavaCodeReview","forks_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/forks","keys_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/teams","hooks_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/hooks","issue_events_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/issues/events{/number}","events_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/events","assignees_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/assignees{/user}","branches_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/branches{/branch}","tags_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/tags","blobs_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/git/refs{/sha}","trees_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/statuses/{sha}","languages_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/languages","stargazers_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/stargazers","contributors_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/contributors","subscribers_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/subscribers","subscription_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/subscription","commits_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/commits{/sha}","git_commits_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/git/commits{/sha}","comments_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/comments{/number}","issue_comment_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/issues/comments{/number}","contents_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/contents/{+path}","compare_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/merges","archive_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/downloads","issues_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/issues{/number}","pulls_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/pulls{/number}","milestones_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/milestones{/number}","notifications_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/labels{/name}","releases_url":"https://api.github.com/repos/appetrosyan/JavaCodeReview/releases{/id}","created_at":"2016-01-14T13:55:26Z","updated_at":"2016-01-14T13:56:30Z","pushed_at":"2016-01-15T20:11:11Z","git_url":"git://github.com/appetrosyan/JavaCodeReview.git","ssh_url":"git@github.com:appetrosyan/JavaCodeReview.git","clone_url":"https://github.com/appetrosyan/JavaCodeReview.git","svn_url":"https://github.com/appetrosyan/JavaCodeReview","homepage":null,"size":680,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/appetrosyan/JavaCodeReview/pulls/1"},"html":{"href":"https://github.com/appetrosyan/JavaCodeReview/pull/1"},"issue":{"href":"https://api.github.com/repos/appetrosyan/JavaCodeReview/issues/1"},"comments":{"href":"https://api.github.com/repos/appetrosyan/JavaCodeReview/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/appetrosyan/JavaCodeReview/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/appetrosyan/JavaCodeReview/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/appetrosyan/JavaCodeReview/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/appetrosyan/JavaCodeReview/statuses/39191dbfc1da8eaa86703448841f5225466cb3b2"}}}}