{"action":"created","comment":{"url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/comments/38704631","id":38704631,"diff_hunk":"@@ -1,2 +1,30 @@\n class Queen < Piece\n+  def valid_move?(new_x, new_y)\n+    delta_x = (new_x - x_position).abs\n+    delta_y = (new_y - y_position).abs\n+      \n+      if valid_diagonal_move?(delta_x, delta_y)?\n+        true\n+      elsif valid_vertical_move?(delta_x, delta_y)\n+        true\n+      elsif valid_horizontal_move?(delta_x, delta_y)\n+        true\n+      else","path":"app/models/queen.rb","position":12,"original_position":12,"commit_id":"9db1b90abc5a8176f36222ba275282d607dabf6c","original_commit_id":"9db1b90abc5a8176f36222ba275282d607dabf6c","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"else without rescue is useless","created_at":"2015-09-03T22:33:59Z","updated_at":"2015-09-03T22:33:59Z","html_url":"https://github.com/foolsmatechess/fools_mate_chess/pull/15#discussion_r38704631","pull_request_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/comments/38704631"},"html":{"href":"https://github.com/foolsmatechess/fools_mate_chess/pull/15#discussion_r38704631"},"pull_request":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/15","id":43439911,"html_url":"https://github.com/foolsmatechess/fools_mate_chess/pull/15","diff_url":"https://github.com/foolsmatechess/fools_mate_chess/pull/15.diff","patch_url":"https://github.com/foolsmatechess/fools_mate_chess/pull/15.patch","issue_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/15","number":15,"state":"open","locked":false,"title":"Valid move queen","user":{"login":"mkyaw","id":8936496,"avatar_url":"https://avatars.githubusercontent.com/u/8936496?v=3","gravatar_id":"","url":"https://api.github.com/users/mkyaw","html_url":"https://github.com/mkyaw","followers_url":"https://api.github.com/users/mkyaw/followers","following_url":"https://api.github.com/users/mkyaw/following{/other_user}","gists_url":"https://api.github.com/users/mkyaw/gists{/gist_id}","starred_url":"https://api.github.com/users/mkyaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkyaw/subscriptions","organizations_url":"https://api.github.com/users/mkyaw/orgs","repos_url":"https://api.github.com/users/mkyaw/repos","events_url":"https://api.github.com/users/mkyaw/events{/privacy}","received_events_url":"https://api.github.com/users/mkyaw/received_events","type":"User","site_admin":false},"body":"Added combined valid_move methods of rook and bishop to create valid_move? method for queen","created_at":"2015-08-26T19:12:30Z","updated_at":"2015-09-03T22:33:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3571d397967933a4444cb7a0c6506104ad065162","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/15/commits","review_comments_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/15/comments","review_comment_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/comments{/number}","comments_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/15/comments","statuses_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/statuses/9db1b90abc5a8176f36222ba275282d607dabf6c","head":{"label":"foolsmatechess:valid-move-queen","ref":"valid-move-queen","sha":"9db1b90abc5a8176f36222ba275282d607dabf6c","user":{"login":"foolsmatechess","id":13500112,"avatar_url":"https://avatars.githubusercontent.com/u/13500112?v=3","gravatar_id":"","url":"https://api.github.com/users/foolsmatechess","html_url":"https://github.com/foolsmatechess","followers_url":"https://api.github.com/users/foolsmatechess/followers","following_url":"https://api.github.com/users/foolsmatechess/following{/other_user}","gists_url":"https://api.github.com/users/foolsmatechess/gists{/gist_id}","starred_url":"https://api.github.com/users/foolsmatechess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foolsmatechess/subscriptions","organizations_url":"https://api.github.com/users/foolsmatechess/orgs","repos_url":"https://api.github.com/users/foolsmatechess/repos","events_url":"https://api.github.com/users/foolsmatechess/events{/privacy}","received_events_url":"https://api.github.com/users/foolsmatechess/received_events","type":"Organization","site_admin":false},"repo":{"id":39698887,"name":"fools_mate_chess","full_name":"foolsmatechess/fools_mate_chess","owner":{"login":"foolsmatechess","id":13500112,"avatar_url":"https://avatars.githubusercontent.com/u/13500112?v=3","gravatar_id":"","url":"https://api.github.com/users/foolsmatechess","html_url":"https://github.com/foolsmatechess","followers_url":"https://api.github.com/users/foolsmatechess/followers","following_url":"https://api.github.com/users/foolsmatechess/following{/other_user}","gists_url":"https://api.github.com/users/foolsmatechess/gists{/gist_id}","starred_url":"https://api.github.com/users/foolsmatechess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foolsmatechess/subscriptions","organizations_url":"https://api.github.com/users/foolsmatechess/orgs","repos_url":"https://api.github.com/users/foolsmatechess/repos","events_url":"https://api.github.com/users/foolsmatechess/events{/privacy}","received_events_url":"https://api.github.com/users/foolsmatechess/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/foolsmatechess/fools_mate_chess","description":"","fork":false,"url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess","forks_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/forks","keys_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/teams","hooks_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/hooks","issue_events_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/events{/number}","events_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/events","assignees_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/assignees{/user}","branches_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/branches{/branch}","tags_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/tags","blobs_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/refs{/sha}","trees_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/statuses/{sha}","languages_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/languages","stargazers_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/stargazers","contributors_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/contributors","subscribers_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/subscribers","subscription_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/subscription","commits_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/commits{/sha}","git_commits_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/commits{/sha}","comments_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/comments{/number}","issue_comment_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/comments{/number}","contents_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/contents/{+path}","compare_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/merges","archive_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/downloads","issues_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues{/number}","pulls_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls{/number}","milestones_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/milestones{/number}","notifications_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/labels{/name}","releases_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/releases{/id}","created_at":"2015-07-25T19:02:20Z","updated_at":"2015-07-25T21:19:03Z","pushed_at":"2015-09-03T22:33:55Z","git_url":"git://github.com/foolsmatechess/fools_mate_chess.git","ssh_url":"git@github.com:foolsmatechess/fools_mate_chess.git","clone_url":"https://github.com/foolsmatechess/fools_mate_chess.git","svn_url":"https://github.com/foolsmatechess/fools_mate_chess","homepage":"https://foolsmate.herokuapp.com/","size":548,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"foolsmatechess:master","ref":"master","sha":"0c4b7e46cf4ff329470b919b75a31518592bbf64","user":{"login":"foolsmatechess","id":13500112,"avatar_url":"https://avatars.githubusercontent.com/u/13500112?v=3","gravatar_id":"","url":"https://api.github.com/users/foolsmatechess","html_url":"https://github.com/foolsmatechess","followers_url":"https://api.github.com/users/foolsmatechess/followers","following_url":"https://api.github.com/users/foolsmatechess/following{/other_user}","gists_url":"https://api.github.com/users/foolsmatechess/gists{/gist_id}","starred_url":"https://api.github.com/users/foolsmatechess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foolsmatechess/subscriptions","organizations_url":"https://api.github.com/users/foolsmatechess/orgs","repos_url":"https://api.github.com/users/foolsmatechess/repos","events_url":"https://api.github.com/users/foolsmatechess/events{/privacy}","received_events_url":"https://api.github.com/users/foolsmatechess/received_events","type":"Organization","site_admin":false},"repo":{"id":39698887,"name":"fools_mate_chess","full_name":"foolsmatechess/fools_mate_chess","owner":{"login":"foolsmatechess","id":13500112,"avatar_url":"https://avatars.githubusercontent.com/u/13500112?v=3","gravatar_id":"","url":"https://api.github.com/users/foolsmatechess","html_url":"https://github.com/foolsmatechess","followers_url":"https://api.github.com/users/foolsmatechess/followers","following_url":"https://api.github.com/users/foolsmatechess/following{/other_user}","gists_url":"https://api.github.com/users/foolsmatechess/gists{/gist_id}","starred_url":"https://api.github.com/users/foolsmatechess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foolsmatechess/subscriptions","organizations_url":"https://api.github.com/users/foolsmatechess/orgs","repos_url":"https://api.github.com/users/foolsmatechess/repos","events_url":"https://api.github.com/users/foolsmatechess/events{/privacy}","received_events_url":"https://api.github.com/users/foolsmatechess/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/foolsmatechess/fools_mate_chess","description":"","fork":false,"url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess","forks_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/forks","keys_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/teams","hooks_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/hooks","issue_events_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/events{/number}","events_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/events","assignees_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/assignees{/user}","branches_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/branches{/branch}","tags_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/tags","blobs_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/refs{/sha}","trees_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/statuses/{sha}","languages_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/languages","stargazers_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/stargazers","contributors_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/contributors","subscribers_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/subscribers","subscription_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/subscription","commits_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/commits{/sha}","git_commits_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/git/commits{/sha}","comments_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/comments{/number}","issue_comment_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/comments{/number}","contents_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/contents/{+path}","compare_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/merges","archive_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/downloads","issues_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues{/number}","pulls_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls{/number}","milestones_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/milestones{/number}","notifications_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/labels{/name}","releases_url":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/releases{/id}","created_at":"2015-07-25T19:02:20Z","updated_at":"2015-07-25T21:19:03Z","pushed_at":"2015-09-03T22:33:55Z","git_url":"git://github.com/foolsmatechess/fools_mate_chess.git","ssh_url":"git@github.com:foolsmatechess/fools_mate_chess.git","clone_url":"https://github.com/foolsmatechess/fools_mate_chess.git","svn_url":"https://github.com/foolsmatechess/fools_mate_chess","homepage":"https://foolsmate.herokuapp.com/","size":548,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/15"},"html":{"href":"https://github.com/foolsmatechess/fools_mate_chess/pull/15"},"issue":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/15"},"comments":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/foolsmatechess/fools_mate_chess/statuses/9db1b90abc5a8176f36222ba275282d607dabf6c"}}}}