{"action":"created","comment":{"url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/pulls/comments/45187737","id":45187737,"diff_hunk":"@@ -0,0 +1,112 @@\n+package jttt.Core;\n+\n+import java.util.HashMap;\n+\n+import static java.lang.Math.max;\n+import static java.lang.Math.min;\n+\n+public class AlphaBetaStrategy implements AIMoveStrategy {\n+    private static int DISPLAY_POSITION_OFFSET = 1;\n+    private static final int SCORE_FOR_DRAW = 0;\n+    private static Integer DEPTH = 0;\n+    private static int INITIAL_SCORE = 1000000;\n+    private static int INITIAL_ALPHA = -10000000;\n+    private static int INITIAL_BETA = 10000000;\n+    private static String MOVE_KEY = \"Move\";\n+    private static String SCORE_KEY = \"Score\";\n+    private Counter counter;","path":"src/jttt/Core/AlphaBetaStrategy.java","position":17,"original_position":17,"commit_id":"2a61d11c76b1105145466561b9d4997bdc49dac2","original_commit_id":"2a61d11c76b1105145466561b9d4997bdc49dac2","user":{"login":"felipesere","id":1850188,"avatar_url":"https://avatars.githubusercontent.com/u/1850188?v=3","gravatar_id":"","url":"https://api.github.com/users/felipesere","html_url":"https://github.com/felipesere","followers_url":"https://api.github.com/users/felipesere/followers","following_url":"https://api.github.com/users/felipesere/following{/other_user}","gists_url":"https://api.github.com/users/felipesere/gists{/gist_id}","starred_url":"https://api.github.com/users/felipesere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipesere/subscriptions","organizations_url":"https://api.github.com/users/felipesere/orgs","repos_url":"https://api.github.com/users/felipesere/repos","events_url":"https://api.github.com/users/felipesere/events{/privacy}","received_events_url":"https://api.github.com/users/felipesere/received_events","type":"User","site_admin":false},"body":"`Counter` sounds like it would \"count\" something... maybe `Mark` or `Symbol` is more intention revealing?","created_at":"2015-11-18T11:22:07Z","updated_at":"2015-11-18T11:22:07Z","html_url":"https://github.com/sarahabimay/TicTacToe_JAVA/pull/16#discussion_r45187737","pull_request_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/pulls/comments/45187737"},"html":{"href":"https://github.com/sarahabimay/TicTacToe_JAVA/pull/16#discussion_r45187737"},"pull_request":{"href":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/pulls/16","id":51067902,"html_url":"https://github.com/sarahabimay/TicTacToe_JAVA/pull/16","diff_url":"https://github.com/sarahabimay/TicTacToe_JAVA/pull/16.diff","patch_url":"https://github.com/sarahabimay/TicTacToe_JAVA/pull/16.patch","issue_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/issues/16","number":16,"state":"open","locked":false,"title":"Created AIMoveStrategy class and it's Factory to be used by AIPlayer","user":{"login":"sarahabimay","id":10097084,"avatar_url":"https://avatars.githubusercontent.com/u/10097084?v=3","gravatar_id":"","url":"https://api.github.com/users/sarahabimay","html_url":"https://github.com/sarahabimay","followers_url":"https://api.github.com/users/sarahabimay/followers","following_url":"https://api.github.com/users/sarahabimay/following{/other_user}","gists_url":"https://api.github.com/users/sarahabimay/gists{/gist_id}","starred_url":"https://api.github.com/users/sarahabimay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarahabimay/subscriptions","organizations_url":"https://api.github.com/users/sarahabimay/orgs","repos_url":"https://api.github.com/users/sarahabimay/repos","events_url":"https://api.github.com/users/sarahabimay/events{/privacy}","received_events_url":"https://api.github.com/users/sarahabimay/received_events","type":"User","site_admin":false},"body":"* RandomStrategy isn't being used; it is probably confused with the concept of 'difficulty level' which I will do later.\r\n* FourByFourAlphaBetaStrategy is very specific to 4x4 board currently\r\n* Default Strategy is the AlphaBetaStrategy\r\n* Need to think about what strategy an N by N board will use..\r\n\r\n","created_at":"2015-11-18T10:41:44Z","updated_at":"2015-11-18T11:22:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89af7af13869ddcf7040ac49307bfc17cdf198dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/pulls/16/commits","review_comments_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/pulls/16/comments","review_comment_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/issues/16/comments","statuses_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/statuses/2a61d11c76b1105145466561b9d4997bdc49dac2","head":{"label":"sarahabimay:design_for_mutli_strategies","ref":"design_for_mutli_strategies","sha":"2a61d11c76b1105145466561b9d4997bdc49dac2","user":{"login":"sarahabimay","id":10097084,"avatar_url":"https://avatars.githubusercontent.com/u/10097084?v=3","gravatar_id":"","url":"https://api.github.com/users/sarahabimay","html_url":"https://github.com/sarahabimay","followers_url":"https://api.github.com/users/sarahabimay/followers","following_url":"https://api.github.com/users/sarahabimay/following{/other_user}","gists_url":"https://api.github.com/users/sarahabimay/gists{/gist_id}","starred_url":"https://api.github.com/users/sarahabimay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarahabimay/subscriptions","organizations_url":"https://api.github.com/users/sarahabimay/orgs","repos_url":"https://api.github.com/users/sarahabimay/repos","events_url":"https://api.github.com/users/sarahabimay/events{/privacy}","received_events_url":"https://api.github.com/users/sarahabimay/received_events","type":"User","site_admin":false},"repo":{"id":44377894,"name":"TicTacToe_JAVA","full_name":"sarahabimay/TicTacToe_JAVA","owner":{"login":"sarahabimay","id":10097084,"avatar_url":"https://avatars.githubusercontent.com/u/10097084?v=3","gravatar_id":"","url":"https://api.github.com/users/sarahabimay","html_url":"https://github.com/sarahabimay","followers_url":"https://api.github.com/users/sarahabimay/followers","following_url":"https://api.github.com/users/sarahabimay/following{/other_user}","gists_url":"https://api.github.com/users/sarahabimay/gists{/gist_id}","starred_url":"https://api.github.com/users/sarahabimay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarahabimay/subscriptions","organizations_url":"https://api.github.com/users/sarahabimay/orgs","repos_url":"https://api.github.com/users/sarahabimay/repos","events_url":"https://api.github.com/users/sarahabimay/events{/privacy}","received_events_url":"https://api.github.com/users/sarahabimay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sarahabimay/TicTacToe_JAVA","description":"","fork":false,"url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA","forks_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/forks","keys_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/teams","hooks_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/hooks","issue_events_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/issues/events{/number}","events_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/events","assignees_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/assignees{/user}","branches_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/branches{/branch}","tags_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/tags","blobs_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/git/refs{/sha}","trees_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/statuses/{sha}","languages_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/languages","stargazers_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/stargazers","contributors_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/contributors","subscribers_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/subscribers","subscription_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/subscription","commits_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/commits{/sha}","git_commits_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/git/commits{/sha}","comments_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/comments{/number}","issue_comment_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/issues/comments{/number}","contents_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/contents/{+path}","compare_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/merges","archive_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/downloads","issues_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/issues{/number}","pulls_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/pulls{/number}","milestones_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/milestones{/number}","notifications_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/labels{/name}","releases_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/releases{/id}","created_at":"2015-10-16T10:15:57Z","updated_at":"2015-11-18T10:51:44Z","pushed_at":"2015-11-18T10:41:45Z","git_url":"git://github.com/sarahabimay/TicTacToe_JAVA.git","ssh_url":"git@github.com:sarahabimay/TicTacToe_JAVA.git","clone_url":"https://github.com/sarahabimay/TicTacToe_JAVA.git","svn_url":"https://github.com/sarahabimay/TicTacToe_JAVA","homepage":null,"size":944,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sarahabimay:master","ref":"master","sha":"c09cd31fc81d31d491a0321369f63372ddfc040c","user":{"login":"sarahabimay","id":10097084,"avatar_url":"https://avatars.githubusercontent.com/u/10097084?v=3","gravatar_id":"","url":"https://api.github.com/users/sarahabimay","html_url":"https://github.com/sarahabimay","followers_url":"https://api.github.com/users/sarahabimay/followers","following_url":"https://api.github.com/users/sarahabimay/following{/other_user}","gists_url":"https://api.github.com/users/sarahabimay/gists{/gist_id}","starred_url":"https://api.github.com/users/sarahabimay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarahabimay/subscriptions","organizations_url":"https://api.github.com/users/sarahabimay/orgs","repos_url":"https://api.github.com/users/sarahabimay/repos","events_url":"https://api.github.com/users/sarahabimay/events{/privacy}","received_events_url":"https://api.github.com/users/sarahabimay/received_events","type":"User","site_admin":false},"repo":{"id":44377894,"name":"TicTacToe_JAVA","full_name":"sarahabimay/TicTacToe_JAVA","owner":{"login":"sarahabimay","id":10097084,"avatar_url":"https://avatars.githubusercontent.com/u/10097084?v=3","gravatar_id":"","url":"https://api.github.com/users/sarahabimay","html_url":"https://github.com/sarahabimay","followers_url":"https://api.github.com/users/sarahabimay/followers","following_url":"https://api.github.com/users/sarahabimay/following{/other_user}","gists_url":"https://api.github.com/users/sarahabimay/gists{/gist_id}","starred_url":"https://api.github.com/users/sarahabimay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarahabimay/subscriptions","organizations_url":"https://api.github.com/users/sarahabimay/orgs","repos_url":"https://api.github.com/users/sarahabimay/repos","events_url":"https://api.github.com/users/sarahabimay/events{/privacy}","received_events_url":"https://api.github.com/users/sarahabimay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sarahabimay/TicTacToe_JAVA","description":"","fork":false,"url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA","forks_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/forks","keys_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/teams","hooks_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/hooks","issue_events_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/issues/events{/number}","events_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/events","assignees_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/assignees{/user}","branches_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/branches{/branch}","tags_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/tags","blobs_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/git/refs{/sha}","trees_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/statuses/{sha}","languages_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/languages","stargazers_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/stargazers","contributors_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/contributors","subscribers_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/subscribers","subscription_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/subscription","commits_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/commits{/sha}","git_commits_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/git/commits{/sha}","comments_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/comments{/number}","issue_comment_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/issues/comments{/number}","contents_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/contents/{+path}","compare_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/merges","archive_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/downloads","issues_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/issues{/number}","pulls_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/pulls{/number}","milestones_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/milestones{/number}","notifications_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/labels{/name}","releases_url":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/releases{/id}","created_at":"2015-10-16T10:15:57Z","updated_at":"2015-11-18T10:51:44Z","pushed_at":"2015-11-18T10:41:45Z","git_url":"git://github.com/sarahabimay/TicTacToe_JAVA.git","ssh_url":"git@github.com:sarahabimay/TicTacToe_JAVA.git","clone_url":"https://github.com/sarahabimay/TicTacToe_JAVA.git","svn_url":"https://github.com/sarahabimay/TicTacToe_JAVA","homepage":null,"size":944,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/pulls/16"},"html":{"href":"https://github.com/sarahabimay/TicTacToe_JAVA/pull/16"},"issue":{"href":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/issues/16"},"comments":{"href":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/sarahabimay/TicTacToe_JAVA/statuses/2a61d11c76b1105145466561b9d4997bdc49dac2"}}}}