{"action":"created","comment":{"url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/comments/56104108","id":56104108,"diff_hunk":"@@ -0,0 +1,134 @@\n+require_relative 'board.rb'\n+require_relative 'players/human.rb'\n+require_relative 'players/computer.rb'\n+class Game\n+  WIN_COMBINATIONS=[[0,1,2], [3,4,5], [6,7,8], [0,3,6], [1,4,7], [2,5,8],[0,4,8], [2,4,6]]\n+  attr_accessor :board, :player_1, :player_2\n+\n+  def initialize(player_1=nil, player_2=nil, board=nil)\n+      board = Board.new if !board\n+      player_1 = Human.new(\"X\") if !player_1\n+      player_2 = Human.new(\"O\") if !player_2\n+      \n+      @board = board if board\n+      @player_1 = player_1 if player_1\n+      @player_2 = player_2 if player_2\n+  end\n+\n+  def current_player\n+    if (@board.turn_count % 2) == 0","path":"lib/game.rb","position":19,"original_position":19,"commit_id":"6a85fc0b5ba469c158b560dc3d6ae30ba39676d7","original_commit_id":"6a85fc0b5ba469c158b560dc3d6ae30ba39676d7","user":{"login":"randallreedjr","id":2908283,"avatar_url":"https://avatars.githubusercontent.com/u/2908283?v=3","gravatar_id":"","url":"https://api.github.com/users/randallreedjr","html_url":"https://github.com/randallreedjr","followers_url":"https://api.github.com/users/randallreedjr/followers","following_url":"https://api.github.com/users/randallreedjr/following{/other_user}","gists_url":"https://api.github.com/users/randallreedjr/gists{/gist_id}","starred_url":"https://api.github.com/users/randallreedjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randallreedjr/subscriptions","organizations_url":"https://api.github.com/users/randallreedjr/orgs","repos_url":"https://api.github.com/users/randallreedjr/repos","events_url":"https://api.github.com/users/randallreedjr/events{/privacy}","received_events_url":"https://api.github.com/users/randallreedjr/received_events","type":"User","site_admin":false},"body":"Use [`Integer#even?`](http://ruby-doc.org/core-1.8.7/Integer.html#method-i-even-3F) or [`Integer#odd?`](http://ruby-doc.org/core-1.8.7/Integer.html#method-i-odd-3F)\r\n\r\n`@board.turn_count.even? ? @player_1 : @player_2`","created_at":"2016-03-15T01:33:33Z","updated_at":"2016-03-15T01:33:33Z","html_url":"https://github.com/learn-co-students/ttt-with-ai-project-v-000/pull/93#discussion_r56104108","pull_request_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/comments/56104108"},"html":{"href":"https://github.com/learn-co-students/ttt-with-ai-project-v-000/pull/93#discussion_r56104108"},"pull_request":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/93","id":60025321,"html_url":"https://github.com/learn-co-students/ttt-with-ai-project-v-000/pull/93","diff_url":"https://github.com/learn-co-students/ttt-with-ai-project-v-000/pull/93.diff","patch_url":"https://github.com/learn-co-students/ttt-with-ai-project-v-000/pull/93.patch","issue_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/issues/93","number":93,"state":"open","locked":false,"title":"Project submitted","user":{"login":"jjlippman","id":15111082,"avatar_url":"https://avatars.githubusercontent.com/u/15111082?v=3","gravatar_id":"","url":"https://api.github.com/users/jjlippman","html_url":"https://github.com/jjlippman","followers_url":"https://api.github.com/users/jjlippman/followers","following_url":"https://api.github.com/users/jjlippman/following{/other_user}","gists_url":"https://api.github.com/users/jjlippman/gists{/gist_id}","starred_url":"https://api.github.com/users/jjlippman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjlippman/subscriptions","organizations_url":"https://api.github.com/users/jjlippman/orgs","repos_url":"https://api.github.com/users/jjlippman/repos","events_url":"https://api.github.com/users/jjlippman/events{/privacy}","received_events_url":"https://api.github.com/users/jjlippman/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-02-19T23:59:39Z","updated_at":"2016-03-15T01:33:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a78cc62a8e96e146d78fb78437c5e879724d3876","assignee":{"login":"randallreedjr","id":2908283,"avatar_url":"https://avatars.githubusercontent.com/u/2908283?v=3","gravatar_id":"","url":"https://api.github.com/users/randallreedjr","html_url":"https://github.com/randallreedjr","followers_url":"https://api.github.com/users/randallreedjr/followers","following_url":"https://api.github.com/users/randallreedjr/following{/other_user}","gists_url":"https://api.github.com/users/randallreedjr/gists{/gist_id}","starred_url":"https://api.github.com/users/randallreedjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randallreedjr/subscriptions","organizations_url":"https://api.github.com/users/randallreedjr/orgs","repos_url":"https://api.github.com/users/randallreedjr/repos","events_url":"https://api.github.com/users/randallreedjr/events{/privacy}","received_events_url":"https://api.github.com/users/randallreedjr/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/93/commits","review_comments_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/93/comments","review_comment_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/comments{/number}","comments_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/issues/93/comments","statuses_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/statuses/6a85fc0b5ba469c158b560dc3d6ae30ba39676d7","head":{"label":"jjlippman:master","ref":"master","sha":"6a85fc0b5ba469c158b560dc3d6ae30ba39676d7","user":{"login":"jjlippman","id":15111082,"avatar_url":"https://avatars.githubusercontent.com/u/15111082?v=3","gravatar_id":"","url":"https://api.github.com/users/jjlippman","html_url":"https://github.com/jjlippman","followers_url":"https://api.github.com/users/jjlippman/followers","following_url":"https://api.github.com/users/jjlippman/following{/other_user}","gists_url":"https://api.github.com/users/jjlippman/gists{/gist_id}","starred_url":"https://api.github.com/users/jjlippman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjlippman/subscriptions","organizations_url":"https://api.github.com/users/jjlippman/orgs","repos_url":"https://api.github.com/users/jjlippman/repos","events_url":"https://api.github.com/users/jjlippman/events{/privacy}","received_events_url":"https://api.github.com/users/jjlippman/received_events","type":"User","site_admin":false},"repo":{"id":51891442,"name":"ttt-with-ai-project-v-000","full_name":"jjlippman/ttt-with-ai-project-v-000","owner":{"login":"jjlippman","id":15111082,"avatar_url":"https://avatars.githubusercontent.com/u/15111082?v=3","gravatar_id":"","url":"https://api.github.com/users/jjlippman","html_url":"https://github.com/jjlippman","followers_url":"https://api.github.com/users/jjlippman/followers","following_url":"https://api.github.com/users/jjlippman/following{/other_user}","gists_url":"https://api.github.com/users/jjlippman/gists{/gist_id}","starred_url":"https://api.github.com/users/jjlippman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjlippman/subscriptions","organizations_url":"https://api.github.com/users/jjlippman/orgs","repos_url":"https://api.github.com/users/jjlippman/repos","events_url":"https://api.github.com/users/jjlippman/events{/privacy}","received_events_url":"https://api.github.com/users/jjlippman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jjlippman/ttt-with-ai-project-v-000","description":null,"fork":true,"url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000","forks_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/forks","keys_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/teams","hooks_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/hooks","issue_events_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/issues/events{/number}","events_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/events","assignees_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/assignees{/user}","branches_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/branches{/branch}","tags_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/tags","blobs_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/git/refs{/sha}","trees_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/statuses/{sha}","languages_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/languages","stargazers_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/stargazers","contributors_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/contributors","subscribers_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/subscribers","subscription_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/subscription","commits_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/commits{/sha}","git_commits_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/git/commits{/sha}","comments_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/comments{/number}","issue_comment_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/issues/comments{/number}","contents_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/contents/{+path}","compare_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/merges","archive_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/downloads","issues_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/issues{/number}","pulls_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/pulls{/number}","milestones_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/milestones{/number}","notifications_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/labels{/name}","releases_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/releases{/id}","deployments_url":"https://api.github.com/repos/jjlippman/ttt-with-ai-project-v-000/deployments","created_at":"2016-02-17T03:30:10Z","updated_at":"2016-02-17T03:30:10Z","pushed_at":"2016-03-08T01:58:49Z","git_url":"git://github.com/jjlippman/ttt-with-ai-project-v-000.git","ssh_url":"git@github.com:jjlippman/ttt-with-ai-project-v-000.git","clone_url":"https://github.com/jjlippman/ttt-with-ai-project-v-000.git","svn_url":"https://github.com/jjlippman/ttt-with-ai-project-v-000","homepage":null,"size":27,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"learn-co-students:master","ref":"master","sha":"7d857eab89be25cace416fda944031753dce8f3d","user":{"login":"learn-co-students","id":8825476,"avatar_url":"https://avatars.githubusercontent.com/u/8825476?v=3","gravatar_id":"","url":"https://api.github.com/users/learn-co-students","html_url":"https://github.com/learn-co-students","followers_url":"https://api.github.com/users/learn-co-students/followers","following_url":"https://api.github.com/users/learn-co-students/following{/other_user}","gists_url":"https://api.github.com/users/learn-co-students/gists{/gist_id}","starred_url":"https://api.github.com/users/learn-co-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learn-co-students/subscriptions","organizations_url":"https://api.github.com/users/learn-co-students/orgs","repos_url":"https://api.github.com/users/learn-co-students/repos","events_url":"https://api.github.com/users/learn-co-students/events{/privacy}","received_events_url":"https://api.github.com/users/learn-co-students/received_events","type":"Organization","site_admin":false},"repo":{"id":46080145,"name":"ttt-with-ai-project-v-000","full_name":"learn-co-students/ttt-with-ai-project-v-000","owner":{"login":"learn-co-students","id":8825476,"avatar_url":"https://avatars.githubusercontent.com/u/8825476?v=3","gravatar_id":"","url":"https://api.github.com/users/learn-co-students","html_url":"https://github.com/learn-co-students","followers_url":"https://api.github.com/users/learn-co-students/followers","following_url":"https://api.github.com/users/learn-co-students/following{/other_user}","gists_url":"https://api.github.com/users/learn-co-students/gists{/gist_id}","starred_url":"https://api.github.com/users/learn-co-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learn-co-students/subscriptions","organizations_url":"https://api.github.com/users/learn-co-students/orgs","repos_url":"https://api.github.com/users/learn-co-students/repos","events_url":"https://api.github.com/users/learn-co-students/events{/privacy}","received_events_url":"https://api.github.com/users/learn-co-students/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/learn-co-students/ttt-with-ai-project-v-000","description":null,"fork":false,"url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000","forks_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/forks","keys_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/keys{/key_id}","collaborators_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/teams","hooks_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/hooks","issue_events_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/issues/events{/number}","events_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/events","assignees_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/assignees{/user}","branches_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/branches{/branch}","tags_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/tags","blobs_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/git/refs{/sha}","trees_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/git/trees{/sha}","statuses_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/statuses/{sha}","languages_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/languages","stargazers_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/stargazers","contributors_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/contributors","subscribers_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/subscribers","subscription_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/subscription","commits_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/commits{/sha}","git_commits_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/git/commits{/sha}","comments_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/comments{/number}","issue_comment_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/issues/comments{/number}","contents_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/contents/{+path}","compare_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/compare/{base}...{head}","merges_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/merges","archive_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/downloads","issues_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/issues{/number}","pulls_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls{/number}","milestones_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/milestones{/number}","notifications_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/labels{/name}","releases_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/releases{/id}","deployments_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/deployments","created_at":"2015-11-12T20:52:43Z","updated_at":"2016-02-14T16:23:06Z","pushed_at":"2016-03-14T23:45:05Z","git_url":"git://github.com/learn-co-students/ttt-with-ai-project-v-000.git","ssh_url":"git@github.com:learn-co-students/ttt-with-ai-project-v-000.git","clone_url":"https://github.com/learn-co-students/ttt-with-ai-project-v-000.git","svn_url":"https://github.com/learn-co-students/ttt-with-ai-project-v-000","homepage":null,"size":1699,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":139,"mirror_url":null,"open_issues_count":25,"forks":139,"open_issues":25,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/93"},"html":{"href":"https://github.com/learn-co-students/ttt-with-ai-project-v-000/pull/93"},"issue":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/issues/93"},"comments":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/statuses/6a85fc0b5ba469c158b560dc3d6ae30ba39676d7"}}}}