{"action":"created","comment":{"url":"https://api.github.com/repos/Fingerfehler/fingerfehler/pulls/comments/207719066","pull_request_review_id":143393646,"id":207719066,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzcxOTA2Ng==","diff_hunk":"@@ -30,4 +30,37 @@ def populate_game!\n   def piece_at(x,y)\n     pieces.find_by(x_coord: x, y_coord: y) || EmptySquare.new\n   end\n+\n+  def in_check? \n+    if white_in_check == true || black_in_check == true","path":"app/models/game.rb","position":6,"original_position":6,"commit_id":"b84282364f18699c27c0d2a1b87e813c7a95edba","original_commit_id":"b84282364f18699c27c0d2a1b87e813c7a95edba","user":{"login":"ilyakrasnov","id":3777545,"node_id":"MDQ6VXNlcjM3Nzc1NDU=","avatar_url":"https://avatars2.githubusercontent.com/u/3777545?v=4","gravatar_id":"","url":"https://api.github.com/users/ilyakrasnov","html_url":"https://github.com/ilyakrasnov","followers_url":"https://api.github.com/users/ilyakrasnov/followers","following_url":"https://api.github.com/users/ilyakrasnov/following{/other_user}","gists_url":"https://api.github.com/users/ilyakrasnov/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyakrasnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyakrasnov/subscriptions","organizations_url":"https://api.github.com/users/ilyakrasnov/orgs","repos_url":"https://api.github.com/users/ilyakrasnov/repos","events_url":"https://api.github.com/users/ilyakrasnov/events{/privacy}","received_events_url":"https://api.github.com/users/ilyakrasnov/received_events","type":"User","site_admin":false},"body":"I really like how you break it up into 2 separate methods! Could we make it a bit more concise and have the method be one line with `white_in_check || black_in_check`? 😄 ","created_at":"2018-08-04T20:48:16Z","updated_at":"2018-08-04T20:48:16Z","html_url":"https://github.com/Fingerfehler/fingerfehler/pull/28#discussion_r207719066","pull_request_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/pulls/28","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Fingerfehler/fingerfehler/pulls/comments/207719066"},"html":{"href":"https://github.com/Fingerfehler/fingerfehler/pull/28#discussion_r207719066"},"pull_request":{"href":"https://api.github.com/repos/Fingerfehler/fingerfehler/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/Fingerfehler/fingerfehler/pulls/28","id":205614822,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NjE0ODIy","html_url":"https://github.com/Fingerfehler/fingerfehler/pull/28","diff_url":"https://github.com/Fingerfehler/fingerfehler/pull/28.diff","patch_url":"https://github.com/Fingerfehler/fingerfehler/pull/28.patch","issue_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/issues/28","number":28,"state":"open","locked":false,"title":"inCheck-brandon ","user":{"login":"Brandongoodman615","id":37818357,"node_id":"MDQ6VXNlcjM3ODE4MzU3","avatar_url":"https://avatars3.githubusercontent.com/u/37818357?v=4","gravatar_id":"","url":"https://api.github.com/users/Brandongoodman615","html_url":"https://github.com/Brandongoodman615","followers_url":"https://api.github.com/users/Brandongoodman615/followers","following_url":"https://api.github.com/users/Brandongoodman615/following{/other_user}","gists_url":"https://api.github.com/users/Brandongoodman615/gists{/gist_id}","starred_url":"https://api.github.com/users/Brandongoodman615/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brandongoodman615/subscriptions","organizations_url":"https://api.github.com/users/Brandongoodman615/orgs","repos_url":"https://api.github.com/users/Brandongoodman615/repos","events_url":"https://api.github.com/users/Brandongoodman615/events{/privacy}","received_events_url":"https://api.github.com/users/Brandongoodman615/received_events","type":"User","site_admin":false},"body":"Working with tests. ","created_at":"2018-08-02T04:22:41Z","updated_at":"2018-08-04T20:48:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38d67ca1d48b8928a98457208785664ec6de651e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"bhk1019","id":9097851,"node_id":"MDQ6VXNlcjkwOTc4NTE=","avatar_url":"https://avatars0.githubusercontent.com/u/9097851?v=4","gravatar_id":"","url":"https://api.github.com/users/bhk1019","html_url":"https://github.com/bhk1019","followers_url":"https://api.github.com/users/bhk1019/followers","following_url":"https://api.github.com/users/bhk1019/following{/other_user}","gists_url":"https://api.github.com/users/bhk1019/gists{/gist_id}","starred_url":"https://api.github.com/users/bhk1019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhk1019/subscriptions","organizations_url":"https://api.github.com/users/bhk1019/orgs","repos_url":"https://api.github.com/users/bhk1019/repos","events_url":"https://api.github.com/users/bhk1019/events{/privacy}","received_events_url":"https://api.github.com/users/bhk1019/received_events","type":"User","site_admin":false},{"login":"Marsha331","id":13543484,"node_id":"MDQ6VXNlcjEzNTQzNDg0","avatar_url":"https://avatars3.githubusercontent.com/u/13543484?v=4","gravatar_id":"","url":"https://api.github.com/users/Marsha331","html_url":"https://github.com/Marsha331","followers_url":"https://api.github.com/users/Marsha331/followers","following_url":"https://api.github.com/users/Marsha331/following{/other_user}","gists_url":"https://api.github.com/users/Marsha331/gists{/gist_id}","starred_url":"https://api.github.com/users/Marsha331/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marsha331/subscriptions","organizations_url":"https://api.github.com/users/Marsha331/orgs","repos_url":"https://api.github.com/users/Marsha331/repos","events_url":"https://api.github.com/users/Marsha331/events{/privacy}","received_events_url":"https://api.github.com/users/Marsha331/received_events","type":"User","site_admin":false},{"login":"saj528","id":32206330,"node_id":"MDQ6VXNlcjMyMjA2MzMw","avatar_url":"https://avatars0.githubusercontent.com/u/32206330?v=4","gravatar_id":"","url":"https://api.github.com/users/saj528","html_url":"https://github.com/saj528","followers_url":"https://api.github.com/users/saj528/followers","following_url":"https://api.github.com/users/saj528/following{/other_user}","gists_url":"https://api.github.com/users/saj528/gists{/gist_id}","starred_url":"https://api.github.com/users/saj528/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saj528/subscriptions","organizations_url":"https://api.github.com/users/saj528/orgs","repos_url":"https://api.github.com/users/saj528/repos","events_url":"https://api.github.com/users/saj528/events{/privacy}","received_events_url":"https://api.github.com/users/saj528/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/pulls/28/commits","review_comments_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/pulls/28/comments","review_comment_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/issues/28/comments","statuses_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/statuses/b84282364f18699c27c0d2a1b87e813c7a95edba","head":{"label":"Fingerfehler:inCheck-brandon","ref":"inCheck-brandon","sha":"b84282364f18699c27c0d2a1b87e813c7a95edba","user":{"login":"Fingerfehler","id":40834461,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwODM0NDYx","avatar_url":"https://avatars2.githubusercontent.com/u/40834461?v=4","gravatar_id":"","url":"https://api.github.com/users/Fingerfehler","html_url":"https://github.com/Fingerfehler","followers_url":"https://api.github.com/users/Fingerfehler/followers","following_url":"https://api.github.com/users/Fingerfehler/following{/other_user}","gists_url":"https://api.github.com/users/Fingerfehler/gists{/gist_id}","starred_url":"https://api.github.com/users/Fingerfehler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fingerfehler/subscriptions","organizations_url":"https://api.github.com/users/Fingerfehler/orgs","repos_url":"https://api.github.com/users/Fingerfehler/repos","events_url":"https://api.github.com/users/Fingerfehler/events{/privacy}","received_events_url":"https://api.github.com/users/Fingerfehler/received_events","type":"Organization","site_admin":false},"repo":{"id":139740102,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk3NDAxMDI=","name":"fingerfehler","full_name":"Fingerfehler/fingerfehler","owner":{"login":"Fingerfehler","id":40834461,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwODM0NDYx","avatar_url":"https://avatars2.githubusercontent.com/u/40834461?v=4","gravatar_id":"","url":"https://api.github.com/users/Fingerfehler","html_url":"https://github.com/Fingerfehler","followers_url":"https://api.github.com/users/Fingerfehler/followers","following_url":"https://api.github.com/users/Fingerfehler/following{/other_user}","gists_url":"https://api.github.com/users/Fingerfehler/gists{/gist_id}","starred_url":"https://api.github.com/users/Fingerfehler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fingerfehler/subscriptions","organizations_url":"https://api.github.com/users/Fingerfehler/orgs","repos_url":"https://api.github.com/users/Fingerfehler/repos","events_url":"https://api.github.com/users/Fingerfehler/events{/privacy}","received_events_url":"https://api.github.com/users/Fingerfehler/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Fingerfehler/fingerfehler","description":"Team Chess Application","fork":false,"url":"https://api.github.com/repos/Fingerfehler/fingerfehler","forks_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/forks","keys_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/teams","hooks_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/hooks","issue_events_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/issues/events{/number}","events_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/events","assignees_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/assignees{/user}","branches_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/branches{/branch}","tags_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/tags","blobs_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/statuses/{sha}","languages_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/languages","stargazers_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/stargazers","contributors_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/contributors","subscribers_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/subscribers","subscription_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/subscription","commits_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/contents/{+path}","compare_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/merges","archive_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/downloads","issues_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/issues{/number}","pulls_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/pulls{/number}","milestones_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/milestones{/number}","notifications_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/labels{/name}","releases_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/releases{/id}","deployments_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/deployments","created_at":"2018-07-04T15:36:33Z","updated_at":"2018-08-01T20:52:41Z","pushed_at":"2018-08-04T19:16:03Z","git_url":"git://github.com/Fingerfehler/fingerfehler.git","ssh_url":"git@github.com:Fingerfehler/fingerfehler.git","clone_url":"https://github.com/Fingerfehler/fingerfehler.git","svn_url":"https://github.com/Fingerfehler/fingerfehler","homepage":"","size":171,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":2,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"Fingerfehler:master","ref":"master","sha":"4a8ef8614a0d42a5ac54ac6b523bc116e045f74e","user":{"login":"Fingerfehler","id":40834461,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwODM0NDYx","avatar_url":"https://avatars2.githubusercontent.com/u/40834461?v=4","gravatar_id":"","url":"https://api.github.com/users/Fingerfehler","html_url":"https://github.com/Fingerfehler","followers_url":"https://api.github.com/users/Fingerfehler/followers","following_url":"https://api.github.com/users/Fingerfehler/following{/other_user}","gists_url":"https://api.github.com/users/Fingerfehler/gists{/gist_id}","starred_url":"https://api.github.com/users/Fingerfehler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fingerfehler/subscriptions","organizations_url":"https://api.github.com/users/Fingerfehler/orgs","repos_url":"https://api.github.com/users/Fingerfehler/repos","events_url":"https://api.github.com/users/Fingerfehler/events{/privacy}","received_events_url":"https://api.github.com/users/Fingerfehler/received_events","type":"Organization","site_admin":false},"repo":{"id":139740102,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk3NDAxMDI=","name":"fingerfehler","full_name":"Fingerfehler/fingerfehler","owner":{"login":"Fingerfehler","id":40834461,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwODM0NDYx","avatar_url":"https://avatars2.githubusercontent.com/u/40834461?v=4","gravatar_id":"","url":"https://api.github.com/users/Fingerfehler","html_url":"https://github.com/Fingerfehler","followers_url":"https://api.github.com/users/Fingerfehler/followers","following_url":"https://api.github.com/users/Fingerfehler/following{/other_user}","gists_url":"https://api.github.com/users/Fingerfehler/gists{/gist_id}","starred_url":"https://api.github.com/users/Fingerfehler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fingerfehler/subscriptions","organizations_url":"https://api.github.com/users/Fingerfehler/orgs","repos_url":"https://api.github.com/users/Fingerfehler/repos","events_url":"https://api.github.com/users/Fingerfehler/events{/privacy}","received_events_url":"https://api.github.com/users/Fingerfehler/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Fingerfehler/fingerfehler","description":"Team Chess Application","fork":false,"url":"https://api.github.com/repos/Fingerfehler/fingerfehler","forks_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/forks","keys_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/teams","hooks_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/hooks","issue_events_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/issues/events{/number}","events_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/events","assignees_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/assignees{/user}","branches_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/branches{/branch}","tags_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/tags","blobs_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/statuses/{sha}","languages_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/languages","stargazers_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/stargazers","contributors_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/contributors","subscribers_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/subscribers","subscription_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/subscription","commits_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/contents/{+path}","compare_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/merges","archive_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/downloads","issues_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/issues{/number}","pulls_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/pulls{/number}","milestones_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/milestones{/number}","notifications_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/labels{/name}","releases_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/releases{/id}","deployments_url":"https://api.github.com/repos/Fingerfehler/fingerfehler/deployments","created_at":"2018-07-04T15:36:33Z","updated_at":"2018-08-01T20:52:41Z","pushed_at":"2018-08-04T19:16:03Z","git_url":"git://github.com/Fingerfehler/fingerfehler.git","ssh_url":"git@github.com:Fingerfehler/fingerfehler.git","clone_url":"https://github.com/Fingerfehler/fingerfehler.git","svn_url":"https://github.com/Fingerfehler/fingerfehler","homepage":"","size":171,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":2,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Fingerfehler/fingerfehler/pulls/28"},"html":{"href":"https://github.com/Fingerfehler/fingerfehler/pull/28"},"issue":{"href":"https://api.github.com/repos/Fingerfehler/fingerfehler/issues/28"},"comments":{"href":"https://api.github.com/repos/Fingerfehler/fingerfehler/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/Fingerfehler/fingerfehler/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/Fingerfehler/fingerfehler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Fingerfehler/fingerfehler/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/Fingerfehler/fingerfehler/statuses/b84282364f18699c27c0d2a1b87e813c7a95edba"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"ilyakrasnov"}}