{"action":"closed","number":21,"pull_request":{"url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/pulls/21","id":64327950,"html_url":"https://github.com/TeamAlphaChess/Chess-app/pull/21","diff_url":"https://github.com/TeamAlphaChess/Chess-app/pull/21.diff","patch_url":"https://github.com/TeamAlphaChess/Chess-app/pull/21.patch","issue_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/issues/21","number":21,"state":"closed","locked":false,"title":"add bare bones of move_to! method and comments to piece.rb","user":{"login":"HThanki","id":6018374,"avatar_url":"https://avatars.githubusercontent.com/u/6018374?v=3","gravatar_id":"","url":"https://api.github.com/users/HThanki","html_url":"https://github.com/HThanki","followers_url":"https://api.github.com/users/HThanki/followers","following_url":"https://api.github.com/users/HThanki/following{/other_user}","gists_url":"https://api.github.com/users/HThanki/gists{/gist_id}","starred_url":"https://api.github.com/users/HThanki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HThanki/subscriptions","organizations_url":"https://api.github.com/users/HThanki/orgs","repos_url":"https://api.github.com/users/HThanki/repos","events_url":"https://api.github.com/users/HThanki/events{/privacy}","received_events_url":"https://api.github.com/users/HThanki/received_events","type":"User","site_admin":false},"body":":construction: Work in Progress :construction: \r\n\r\n- [x] Create tests for the behaviour outlined in the points below.\r\n- [x] Now in the method, check to see if there is a piece in the location it’s moving to (i.e. call invalid_destination? method)\r\n- [x] If there is a piece there, and it’s the opposing color, remove the piece from the board. This can be done a few different ways. You could have a “status” flag on the piece that will be one of “onboard” or “captured”. You could set the piece’s x/y coordinates to nil. You could delete the item from the database.\r\n- [x] If the piece is there and it’s the same color the move should fail - it should either raise an error message or do nothing.\r\n- [x] Finally, it should call update_attributes on the piece and change the piece’s x/y position (move the piece).\r\n- [x] Refactor, breathe and :smile:","created_at":"2016-03-28T14:39:26Z","updated_at":"2016-04-03T03:30:49Z","closed_at":"2016-04-03T03:30:49Z","merged_at":"2016-04-03T03:30:49Z","merge_commit_sha":"3ffaac546f4b6428cc9173ea1f7e04712d6523e6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/pulls/21/commits","review_comments_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/pulls/21/comments","review_comment_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/issues/21/comments","statuses_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/statuses/0c88b2a7536ed8c491df30edc179963669b59629","head":{"label":"TeamAlphaChess:create-move-to-method","ref":"create-move-to-method","sha":"0c88b2a7536ed8c491df30edc179963669b59629","user":{"login":"TeamAlphaChess","id":17817367,"avatar_url":"https://avatars.githubusercontent.com/u/17817367?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamAlphaChess","html_url":"https://github.com/TeamAlphaChess","followers_url":"https://api.github.com/users/TeamAlphaChess/followers","following_url":"https://api.github.com/users/TeamAlphaChess/following{/other_user}","gists_url":"https://api.github.com/users/TeamAlphaChess/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamAlphaChess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamAlphaChess/subscriptions","organizations_url":"https://api.github.com/users/TeamAlphaChess/orgs","repos_url":"https://api.github.com/users/TeamAlphaChess/repos","events_url":"https://api.github.com/users/TeamAlphaChess/events{/privacy}","received_events_url":"https://api.github.com/users/TeamAlphaChess/received_events","type":"Organization","site_admin":false},"repo":{"id":53813059,"name":"Chess-app","full_name":"TeamAlphaChess/Chess-app","owner":{"login":"TeamAlphaChess","id":17817367,"avatar_url":"https://avatars.githubusercontent.com/u/17817367?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamAlphaChess","html_url":"https://github.com/TeamAlphaChess","followers_url":"https://api.github.com/users/TeamAlphaChess/followers","following_url":"https://api.github.com/users/TeamAlphaChess/following{/other_user}","gists_url":"https://api.github.com/users/TeamAlphaChess/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamAlphaChess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamAlphaChess/subscriptions","organizations_url":"https://api.github.com/users/TeamAlphaChess/orgs","repos_url":"https://api.github.com/users/TeamAlphaChess/repos","events_url":"https://api.github.com/users/TeamAlphaChess/events{/privacy}","received_events_url":"https://api.github.com/users/TeamAlphaChess/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeamAlphaChess/Chess-app","description":"","fork":false,"url":"https://api.github.com/repos/TeamAlphaChess/Chess-app","forks_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/forks","keys_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/teams","hooks_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/hooks","issue_events_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/issues/events{/number}","events_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/events","assignees_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/assignees{/user}","branches_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/branches{/branch}","tags_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/tags","blobs_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/statuses/{sha}","languages_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/languages","stargazers_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/stargazers","contributors_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/contributors","subscribers_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/subscribers","subscription_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/subscription","commits_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/contents/{+path}","compare_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/merges","archive_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/downloads","issues_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/issues{/number}","pulls_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/pulls{/number}","milestones_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/milestones{/number}","notifications_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/labels{/name}","releases_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/releases{/id}","deployments_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/deployments","created_at":"2016-03-13T23:20:58Z","updated_at":"2016-03-13T23:21:51Z","pushed_at":"2016-04-03T03:30:51Z","git_url":"git://github.com/TeamAlphaChess/Chess-app.git","ssh_url":"git@github.com:TeamAlphaChess/Chess-app.git","clone_url":"https://github.com/TeamAlphaChess/Chess-app.git","svn_url":"https://github.com/TeamAlphaChess/Chess-app","homepage":null,"size":667,"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":"TeamAlphaChess:master","ref":"master","sha":"0c37fb4c8e10cfe149731293c1e64dea31e5d73f","user":{"login":"TeamAlphaChess","id":17817367,"avatar_url":"https://avatars.githubusercontent.com/u/17817367?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamAlphaChess","html_url":"https://github.com/TeamAlphaChess","followers_url":"https://api.github.com/users/TeamAlphaChess/followers","following_url":"https://api.github.com/users/TeamAlphaChess/following{/other_user}","gists_url":"https://api.github.com/users/TeamAlphaChess/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamAlphaChess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamAlphaChess/subscriptions","organizations_url":"https://api.github.com/users/TeamAlphaChess/orgs","repos_url":"https://api.github.com/users/TeamAlphaChess/repos","events_url":"https://api.github.com/users/TeamAlphaChess/events{/privacy}","received_events_url":"https://api.github.com/users/TeamAlphaChess/received_events","type":"Organization","site_admin":false},"repo":{"id":53813059,"name":"Chess-app","full_name":"TeamAlphaChess/Chess-app","owner":{"login":"TeamAlphaChess","id":17817367,"avatar_url":"https://avatars.githubusercontent.com/u/17817367?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamAlphaChess","html_url":"https://github.com/TeamAlphaChess","followers_url":"https://api.github.com/users/TeamAlphaChess/followers","following_url":"https://api.github.com/users/TeamAlphaChess/following{/other_user}","gists_url":"https://api.github.com/users/TeamAlphaChess/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamAlphaChess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamAlphaChess/subscriptions","organizations_url":"https://api.github.com/users/TeamAlphaChess/orgs","repos_url":"https://api.github.com/users/TeamAlphaChess/repos","events_url":"https://api.github.com/users/TeamAlphaChess/events{/privacy}","received_events_url":"https://api.github.com/users/TeamAlphaChess/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeamAlphaChess/Chess-app","description":"","fork":false,"url":"https://api.github.com/repos/TeamAlphaChess/Chess-app","forks_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/forks","keys_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/teams","hooks_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/hooks","issue_events_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/issues/events{/number}","events_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/events","assignees_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/assignees{/user}","branches_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/branches{/branch}","tags_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/tags","blobs_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/statuses/{sha}","languages_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/languages","stargazers_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/stargazers","contributors_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/contributors","subscribers_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/subscribers","subscription_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/subscription","commits_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/contents/{+path}","compare_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/merges","archive_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/downloads","issues_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/issues{/number}","pulls_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/pulls{/number}","milestones_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/milestones{/number}","notifications_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/labels{/name}","releases_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/releases{/id}","deployments_url":"https://api.github.com/repos/TeamAlphaChess/Chess-app/deployments","created_at":"2016-03-13T23:20:58Z","updated_at":"2016-03-13T23:21:51Z","pushed_at":"2016-04-03T03:30:51Z","git_url":"git://github.com/TeamAlphaChess/Chess-app.git","ssh_url":"git@github.com:TeamAlphaChess/Chess-app.git","clone_url":"https://github.com/TeamAlphaChess/Chess-app.git","svn_url":"https://github.com/TeamAlphaChess/Chess-app","homepage":null,"size":667,"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/TeamAlphaChess/Chess-app/pulls/21"},"html":{"href":"https://github.com/TeamAlphaChess/Chess-app/pull/21"},"issue":{"href":"https://api.github.com/repos/TeamAlphaChess/Chess-app/issues/21"},"comments":{"href":"https://api.github.com/repos/TeamAlphaChess/Chess-app/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/TeamAlphaChess/Chess-app/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/TeamAlphaChess/Chess-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TeamAlphaChess/Chess-app/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/TeamAlphaChess/Chess-app/statuses/0c88b2a7536ed8c491df30edc179963669b59629"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"It-is-Alex","id":13044459,"avatar_url":"https://avatars.githubusercontent.com/u/13044459?v=3","gravatar_id":"","url":"https://api.github.com/users/It-is-Alex","html_url":"https://github.com/It-is-Alex","followers_url":"https://api.github.com/users/It-is-Alex/followers","following_url":"https://api.github.com/users/It-is-Alex/following{/other_user}","gists_url":"https://api.github.com/users/It-is-Alex/gists{/gist_id}","starred_url":"https://api.github.com/users/It-is-Alex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/It-is-Alex/subscriptions","organizations_url":"https://api.github.com/users/It-is-Alex/orgs","repos_url":"https://api.github.com/users/It-is-Alex/repos","events_url":"https://api.github.com/users/It-is-Alex/events{/privacy}","received_events_url":"https://api.github.com/users/It-is-Alex/received_events","type":"User","site_admin":false},"comments":2,"review_comments":5,"commits":16,"additions":100,"deletions":15,"changed_files":5}}