{"action":"created","comment":{"url":"https://api.github.com/repos/CSW-Checkers/checkers/pulls/comments/40493832","id":40493832,"diff_hunk":"@@ -193,4 +200,39 @@ public void setOccupyingPiece(Piece occupyingPiece) {\n         }\n     }\n \n+    public boolean isInSameRow(Square otherSquare) {\n+        return otherSquare.getRowNumber() == this.getRowNumber();\n+    }\n+    \n+    public boolean isInSameColumn(Square otherSquare) {\n+        return otherSquare.getColumnNumber() == this.getColumnNumber();\n+    }\n+    \n+    public int getRowNumber() {\n+        return (int) Math.ceil(position / 4.0);\n+    }\n+    \n+    public int getColumnNumber() {\n+        int remainder = this.position % 8;\n+        switch (remainder) {\n+            case 5: return 1;\n+            case 1: return 2;\n+            case 6: return 3;\n+            case 2: return 4;\n+            case 7: return 5;\n+            case 3: return 6;\n+            case 0: return 7;\n+            case 4: return 8;\n+            default: \n+                return -1;","path":"src/Square.java","position":42,"original_position":42,"commit_id":"977012323a07a23e13b5ec1af3babd83bc58aa94","original_commit_id":"977012323a07a23e13b5ec1af3babd83bc58aa94","user":{"login":"stefprez","id":7565255,"avatar_url":"https://avatars.githubusercontent.com/u/7565255?v=3","gravatar_id":"","url":"https://api.github.com/users/stefprez","html_url":"https://github.com/stefprez","followers_url":"https://api.github.com/users/stefprez/followers","following_url":"https://api.github.com/users/stefprez/following{/other_user}","gists_url":"https://api.github.com/users/stefprez/gists{/gist_id}","starred_url":"https://api.github.com/users/stefprez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefprez/subscriptions","organizations_url":"https://api.github.com/users/stefprez/orgs","repos_url":"https://api.github.com/users/stefprez/repos","events_url":"https://api.github.com/users/stefprez/events{/privacy}","received_events_url":"https://api.github.com/users/stefprez/received_events","type":"User","site_admin":false},"body":"Can you organize this by case number rather than return value? Also, I believe you need `break;` statements for each case.","created_at":"2015-09-26T13:59:57Z","updated_at":"2015-09-26T13:59:57Z","html_url":"https://github.com/CSW-Checkers/checkers/pull/6#discussion_r40493832","pull_request_url":"https://api.github.com/repos/CSW-Checkers/checkers/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/CSW-Checkers/checkers/pulls/comments/40493832"},"html":{"href":"https://github.com/CSW-Checkers/checkers/pull/6#discussion_r40493832"},"pull_request":{"href":"https://api.github.com/repos/CSW-Checkers/checkers/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/CSW-Checkers/checkers/pulls/6","id":46066973,"html_url":"https://github.com/CSW-Checkers/checkers/pull/6","diff_url":"https://github.com/CSW-Checkers/checkers/pull/6.diff","patch_url":"https://github.com/CSW-Checkers/checkers/pull/6.patch","issue_url":"https://api.github.com/repos/CSW-Checkers/checkers/issues/6","number":6,"state":"open","locked":false,"title":"Minimax","user":{"login":"csperlich","id":6044371,"avatar_url":"https://avatars.githubusercontent.com/u/6044371?v=3","gravatar_id":"","url":"https://api.github.com/users/csperlich","html_url":"https://github.com/csperlich","followers_url":"https://api.github.com/users/csperlich/followers","following_url":"https://api.github.com/users/csperlich/following{/other_user}","gists_url":"https://api.github.com/users/csperlich/gists{/gist_id}","starred_url":"https://api.github.com/users/csperlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csperlich/subscriptions","organizations_url":"https://api.github.com/users/csperlich/orgs","repos_url":"https://api.github.com/users/csperlich/repos","events_url":"https://api.github.com/users/csperlich/events{/privacy}","received_events_url":"https://api.github.com/users/csperlich/received_events","type":"User","site_admin":false},"body":"This code is almost 100% untested!!!! But we don't really have any working code in the code base yet. My next branch is going to be writing test cases for MoveGenerator, MiniMax, MiniMaxNode.","created_at":"2015-09-25T23:03:58Z","updated_at":"2015-09-26T13:59:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f02e8029bad493d2278541deb91a01db170cf922","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CSW-Checkers/checkers/pulls/6/commits","review_comments_url":"https://api.github.com/repos/CSW-Checkers/checkers/pulls/6/comments","review_comment_url":"https://api.github.com/repos/CSW-Checkers/checkers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CSW-Checkers/checkers/issues/6/comments","statuses_url":"https://api.github.com/repos/CSW-Checkers/checkers/statuses/977012323a07a23e13b5ec1af3babd83bc58aa94","head":{"label":"csperlich:minimax","ref":"minimax","sha":"977012323a07a23e13b5ec1af3babd83bc58aa94","user":{"login":"csperlich","id":6044371,"avatar_url":"https://avatars.githubusercontent.com/u/6044371?v=3","gravatar_id":"","url":"https://api.github.com/users/csperlich","html_url":"https://github.com/csperlich","followers_url":"https://api.github.com/users/csperlich/followers","following_url":"https://api.github.com/users/csperlich/following{/other_user}","gists_url":"https://api.github.com/users/csperlich/gists{/gist_id}","starred_url":"https://api.github.com/users/csperlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csperlich/subscriptions","organizations_url":"https://api.github.com/users/csperlich/orgs","repos_url":"https://api.github.com/users/csperlich/repos","events_url":"https://api.github.com/users/csperlich/events{/privacy}","received_events_url":"https://api.github.com/users/csperlich/received_events","type":"User","site_admin":false},"repo":{"id":42790531,"name":"checkers","full_name":"csperlich/checkers","owner":{"login":"csperlich","id":6044371,"avatar_url":"https://avatars.githubusercontent.com/u/6044371?v=3","gravatar_id":"","url":"https://api.github.com/users/csperlich","html_url":"https://github.com/csperlich","followers_url":"https://api.github.com/users/csperlich/followers","following_url":"https://api.github.com/users/csperlich/following{/other_user}","gists_url":"https://api.github.com/users/csperlich/gists{/gist_id}","starred_url":"https://api.github.com/users/csperlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csperlich/subscriptions","organizations_url":"https://api.github.com/users/csperlich/orgs","repos_url":"https://api.github.com/users/csperlich/repos","events_url":"https://api.github.com/users/csperlich/events{/privacy}","received_events_url":"https://api.github.com/users/csperlich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/csperlich/checkers","description":"","fork":true,"url":"https://api.github.com/repos/csperlich/checkers","forks_url":"https://api.github.com/repos/csperlich/checkers/forks","keys_url":"https://api.github.com/repos/csperlich/checkers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/csperlich/checkers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/csperlich/checkers/teams","hooks_url":"https://api.github.com/repos/csperlich/checkers/hooks","issue_events_url":"https://api.github.com/repos/csperlich/checkers/issues/events{/number}","events_url":"https://api.github.com/repos/csperlich/checkers/events","assignees_url":"https://api.github.com/repos/csperlich/checkers/assignees{/user}","branches_url":"https://api.github.com/repos/csperlich/checkers/branches{/branch}","tags_url":"https://api.github.com/repos/csperlich/checkers/tags","blobs_url":"https://api.github.com/repos/csperlich/checkers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/csperlich/checkers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/csperlich/checkers/git/refs{/sha}","trees_url":"https://api.github.com/repos/csperlich/checkers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/csperlich/checkers/statuses/{sha}","languages_url":"https://api.github.com/repos/csperlich/checkers/languages","stargazers_url":"https://api.github.com/repos/csperlich/checkers/stargazers","contributors_url":"https://api.github.com/repos/csperlich/checkers/contributors","subscribers_url":"https://api.github.com/repos/csperlich/checkers/subscribers","subscription_url":"https://api.github.com/repos/csperlich/checkers/subscription","commits_url":"https://api.github.com/repos/csperlich/checkers/commits{/sha}","git_commits_url":"https://api.github.com/repos/csperlich/checkers/git/commits{/sha}","comments_url":"https://api.github.com/repos/csperlich/checkers/comments{/number}","issue_comment_url":"https://api.github.com/repos/csperlich/checkers/issues/comments{/number}","contents_url":"https://api.github.com/repos/csperlich/checkers/contents/{+path}","compare_url":"https://api.github.com/repos/csperlich/checkers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/csperlich/checkers/merges","archive_url":"https://api.github.com/repos/csperlich/checkers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/csperlich/checkers/downloads","issues_url":"https://api.github.com/repos/csperlich/checkers/issues{/number}","pulls_url":"https://api.github.com/repos/csperlich/checkers/pulls{/number}","milestones_url":"https://api.github.com/repos/csperlich/checkers/milestones{/number}","notifications_url":"https://api.github.com/repos/csperlich/checkers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/csperlich/checkers/labels{/name}","releases_url":"https://api.github.com/repos/csperlich/checkers/releases{/id}","created_at":"2015-09-19T21:37:51Z","updated_at":"2015-09-22T01:27:40Z","pushed_at":"2015-09-25T22:59:27Z","git_url":"git://github.com/csperlich/checkers.git","ssh_url":"git@github.com:csperlich/checkers.git","clone_url":"https://github.com/csperlich/checkers.git","svn_url":"https://github.com/csperlich/checkers","homepage":null,"size":92,"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":"CSW-Checkers:master","ref":"master","sha":"5b19ee288f641bd2013c4c596c2b1bbd259e6bb3","user":{"login":"CSW-Checkers","id":14205570,"avatar_url":"https://avatars.githubusercontent.com/u/14205570?v=3","gravatar_id":"","url":"https://api.github.com/users/CSW-Checkers","html_url":"https://github.com/CSW-Checkers","followers_url":"https://api.github.com/users/CSW-Checkers/followers","following_url":"https://api.github.com/users/CSW-Checkers/following{/other_user}","gists_url":"https://api.github.com/users/CSW-Checkers/gists{/gist_id}","starred_url":"https://api.github.com/users/CSW-Checkers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CSW-Checkers/subscriptions","organizations_url":"https://api.github.com/users/CSW-Checkers/orgs","repos_url":"https://api.github.com/users/CSW-Checkers/repos","events_url":"https://api.github.com/users/CSW-Checkers/events{/privacy}","received_events_url":"https://api.github.com/users/CSW-Checkers/received_events","type":"Organization","site_admin":false},"repo":{"id":42201131,"name":"checkers","full_name":"CSW-Checkers/checkers","owner":{"login":"CSW-Checkers","id":14205570,"avatar_url":"https://avatars.githubusercontent.com/u/14205570?v=3","gravatar_id":"","url":"https://api.github.com/users/CSW-Checkers","html_url":"https://github.com/CSW-Checkers","followers_url":"https://api.github.com/users/CSW-Checkers/followers","following_url":"https://api.github.com/users/CSW-Checkers/following{/other_user}","gists_url":"https://api.github.com/users/CSW-Checkers/gists{/gist_id}","starred_url":"https://api.github.com/users/CSW-Checkers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CSW-Checkers/subscriptions","organizations_url":"https://api.github.com/users/CSW-Checkers/orgs","repos_url":"https://api.github.com/users/CSW-Checkers/repos","events_url":"https://api.github.com/users/CSW-Checkers/events{/privacy}","received_events_url":"https://api.github.com/users/CSW-Checkers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CSW-Checkers/checkers","description":"","fork":false,"url":"https://api.github.com/repos/CSW-Checkers/checkers","forks_url":"https://api.github.com/repos/CSW-Checkers/checkers/forks","keys_url":"https://api.github.com/repos/CSW-Checkers/checkers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CSW-Checkers/checkers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CSW-Checkers/checkers/teams","hooks_url":"https://api.github.com/repos/CSW-Checkers/checkers/hooks","issue_events_url":"https://api.github.com/repos/CSW-Checkers/checkers/issues/events{/number}","events_url":"https://api.github.com/repos/CSW-Checkers/checkers/events","assignees_url":"https://api.github.com/repos/CSW-Checkers/checkers/assignees{/user}","branches_url":"https://api.github.com/repos/CSW-Checkers/checkers/branches{/branch}","tags_url":"https://api.github.com/repos/CSW-Checkers/checkers/tags","blobs_url":"https://api.github.com/repos/CSW-Checkers/checkers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CSW-Checkers/checkers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CSW-Checkers/checkers/git/refs{/sha}","trees_url":"https://api.github.com/repos/CSW-Checkers/checkers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CSW-Checkers/checkers/statuses/{sha}","languages_url":"https://api.github.com/repos/CSW-Checkers/checkers/languages","stargazers_url":"https://api.github.com/repos/CSW-Checkers/checkers/stargazers","contributors_url":"https://api.github.com/repos/CSW-Checkers/checkers/contributors","subscribers_url":"https://api.github.com/repos/CSW-Checkers/checkers/subscribers","subscription_url":"https://api.github.com/repos/CSW-Checkers/checkers/subscription","commits_url":"https://api.github.com/repos/CSW-Checkers/checkers/commits{/sha}","git_commits_url":"https://api.github.com/repos/CSW-Checkers/checkers/git/commits{/sha}","comments_url":"https://api.github.com/repos/CSW-Checkers/checkers/comments{/number}","issue_comment_url":"https://api.github.com/repos/CSW-Checkers/checkers/issues/comments{/number}","contents_url":"https://api.github.com/repos/CSW-Checkers/checkers/contents/{+path}","compare_url":"https://api.github.com/repos/CSW-Checkers/checkers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CSW-Checkers/checkers/merges","archive_url":"https://api.github.com/repos/CSW-Checkers/checkers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CSW-Checkers/checkers/downloads","issues_url":"https://api.github.com/repos/CSW-Checkers/checkers/issues{/number}","pulls_url":"https://api.github.com/repos/CSW-Checkers/checkers/pulls{/number}","milestones_url":"https://api.github.com/repos/CSW-Checkers/checkers/milestones{/number}","notifications_url":"https://api.github.com/repos/CSW-Checkers/checkers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CSW-Checkers/checkers/labels{/name}","releases_url":"https://api.github.com/repos/CSW-Checkers/checkers/releases{/id}","created_at":"2015-09-09T19:52:39Z","updated_at":"2015-09-22T01:06:54Z","pushed_at":"2015-09-25T23:03:59Z","git_url":"git://github.com/CSW-Checkers/checkers.git","ssh_url":"git@github.com:CSW-Checkers/checkers.git","clone_url":"https://github.com/CSW-Checkers/checkers.git","svn_url":"https://github.com/CSW-Checkers/checkers","homepage":null,"size":210,"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":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CSW-Checkers/checkers/pulls/6"},"html":{"href":"https://github.com/CSW-Checkers/checkers/pull/6"},"issue":{"href":"https://api.github.com/repos/CSW-Checkers/checkers/issues/6"},"comments":{"href":"https://api.github.com/repos/CSW-Checkers/checkers/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/CSW-Checkers/checkers/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/CSW-Checkers/checkers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CSW-Checkers/checkers/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/CSW-Checkers/checkers/statuses/977012323a07a23e13b5ec1af3babd83bc58aa94"}}}}