{"action":"created","comment":{"url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/comments/147475227","pull_request_review_id":72580254,"id":147475227,"diff_hunk":"@@ -0,0 +1,87 @@\n+require 'pry'\n+\n+class Game\n+\n+\n+\n+\n+\n+  WIN_COMBINATIONS = [\n+    [0, 1, 2],\n+    [3, 4, 5],\n+    [6, 7, 8],\n+    [0, 3, 6],\n+    [1, 4, 7],\n+    [2, 5, 8],\n+    [0, 4, 8],\n+    [2, 4, 6]\n+  ]\n+\n+  attr_accessor :board, :player_1, :player_2\n+\n+  def initialize(player_1 = Players::Human.new(\"X\"), player_2 = Players::Human.new(\"O\"), board = Board.new)\n+    @board = board\n+    @player_1 = player_1\n+    @player_2 = player_2\n+  end\n+\n+  def current_player\n+    if board.turn_count.even?","path":"lib/game.rb","position":29,"original_position":29,"commit_id":"496550de0c087b98d266499d53bf6afd0c3db255","original_commit_id":"496550de0c087b98d266499d53bf6afd0c3db255","user":{"login":"jilustrisimo","id":20462422,"avatar_url":"https://avatars2.githubusercontent.com/u/20462422?v=4","gravatar_id":"","url":"https://api.github.com/users/jilustrisimo","html_url":"https://github.com/jilustrisimo","followers_url":"https://api.github.com/users/jilustrisimo/followers","following_url":"https://api.github.com/users/jilustrisimo/following{/other_user}","gists_url":"https://api.github.com/users/jilustrisimo/gists{/gist_id}","starred_url":"https://api.github.com/users/jilustrisimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jilustrisimo/subscriptions","organizations_url":"https://api.github.com/users/jilustrisimo/orgs","repos_url":"https://api.github.com/users/jilustrisimo/repos","events_url":"https://api.github.com/users/jilustrisimo/events{/privacy}","received_events_url":"https://api.github.com/users/jilustrisimo/received_events","type":"User","site_admin":false},"body":"Good job using `.even?`.  You could use a ternary expression instead of an if statement and just wanting 1 of 2 expressions return based on a condition `board.turn_count.even? ? @player_1 : @player_2`","created_at":"2017-10-27T17:51:27Z","updated_at":"2017-10-27T17:54:54Z","html_url":"https://github.com/learn-co-students/ttt-with-ai-project-v-000/pull/728#discussion_r147475227","pull_request_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/728","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/comments/147475227"},"html":{"href":"https://github.com/learn-co-students/ttt-with-ai-project-v-000/pull/728#discussion_r147475227"},"pull_request":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/728"}}},"pull_request":{"url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/728","id":148223845,"html_url":"https://github.com/learn-co-students/ttt-with-ai-project-v-000/pull/728","diff_url":"https://github.com/learn-co-students/ttt-with-ai-project-v-000/pull/728.diff","patch_url":"https://github.com/learn-co-students/ttt-with-ai-project-v-000/pull/728.patch","issue_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/issues/728","number":728,"state":"open","locked":false,"title":"Done","user":{"login":"Gevanstron","id":30359813,"avatar_url":"https://avatars1.githubusercontent.com/u/30359813?v=4","gravatar_id":"","url":"https://api.github.com/users/Gevanstron","html_url":"https://github.com/Gevanstron","followers_url":"https://api.github.com/users/Gevanstron/followers","following_url":"https://api.github.com/users/Gevanstron/following{/other_user}","gists_url":"https://api.github.com/users/Gevanstron/gists{/gist_id}","starred_url":"https://api.github.com/users/Gevanstron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gevanstron/subscriptions","organizations_url":"https://api.github.com/users/Gevanstron/orgs","repos_url":"https://api.github.com/users/Gevanstron/repos","events_url":"https://api.github.com/users/Gevanstron/events{/privacy}","received_events_url":"https://api.github.com/users/Gevanstron/received_events","type":"User","site_admin":false},"body":null,"created_at":"2017-10-23T19:50:48Z","updated_at":"2017-10-27T17:54:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1213314962db3c012a84e51868c1cc4f5191a83","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/728/commits","review_comments_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/728/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/728/comments","statuses_url":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/statuses/496550de0c087b98d266499d53bf6afd0c3db255","head":{"label":"Gevanstron:master","ref":"master","sha":"496550de0c087b98d266499d53bf6afd0c3db255","user":{"login":"Gevanstron","id":30359813,"avatar_url":"https://avatars1.githubusercontent.com/u/30359813?v=4","gravatar_id":"","url":"https://api.github.com/users/Gevanstron","html_url":"https://github.com/Gevanstron","followers_url":"https://api.github.com/users/Gevanstron/followers","following_url":"https://api.github.com/users/Gevanstron/following{/other_user}","gists_url":"https://api.github.com/users/Gevanstron/gists{/gist_id}","starred_url":"https://api.github.com/users/Gevanstron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gevanstron/subscriptions","organizations_url":"https://api.github.com/users/Gevanstron/orgs","repos_url":"https://api.github.com/users/Gevanstron/repos","events_url":"https://api.github.com/users/Gevanstron/events{/privacy}","received_events_url":"https://api.github.com/users/Gevanstron/received_events","type":"User","site_admin":false},"repo":{"id":106837318,"name":"ttt-with-ai-project-v-000","full_name":"Gevanstron/ttt-with-ai-project-v-000","owner":{"login":"Gevanstron","id":30359813,"avatar_url":"https://avatars1.githubusercontent.com/u/30359813?v=4","gravatar_id":"","url":"https://api.github.com/users/Gevanstron","html_url":"https://github.com/Gevanstron","followers_url":"https://api.github.com/users/Gevanstron/followers","following_url":"https://api.github.com/users/Gevanstron/following{/other_user}","gists_url":"https://api.github.com/users/Gevanstron/gists{/gist_id}","starred_url":"https://api.github.com/users/Gevanstron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gevanstron/subscriptions","organizations_url":"https://api.github.com/users/Gevanstron/orgs","repos_url":"https://api.github.com/users/Gevanstron/repos","events_url":"https://api.github.com/users/Gevanstron/events{/privacy}","received_events_url":"https://api.github.com/users/Gevanstron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Gevanstron/ttt-with-ai-project-v-000","description":null,"fork":true,"url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000","forks_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/forks","keys_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/teams","hooks_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/hooks","issue_events_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/issues/events{/number}","events_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/events","assignees_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/assignees{/user}","branches_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/branches{/branch}","tags_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/tags","blobs_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/statuses/{sha}","languages_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/languages","stargazers_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/stargazers","contributors_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/contributors","subscribers_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/subscribers","subscription_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/subscription","commits_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/contents/{+path}","compare_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/merges","archive_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/downloads","issues_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/issues{/number}","pulls_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/pulls{/number}","milestones_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/milestones{/number}","notifications_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/labels{/name}","releases_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/releases{/id}","deployments_url":"https://api.github.com/repos/Gevanstron/ttt-with-ai-project-v-000/deployments","created_at":"2017-10-13T14:51:16Z","updated_at":"2017-10-13T14:51:17Z","pushed_at":"2017-10-23T19:50:44Z","git_url":"git://github.com/Gevanstron/ttt-with-ai-project-v-000.git","ssh_url":"git@github.com:Gevanstron/ttt-with-ai-project-v-000.git","clone_url":"https://github.com/Gevanstron/ttt-with-ai-project-v-000.git","svn_url":"https://github.com/Gevanstron/ttt-with-ai-project-v-000","homepage":null,"size":39,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"learn-co-students:master","ref":"master","sha":"ef9184d777c1586959a074953088231f927e9275","user":{"login":"learn-co-students","id":8825476,"avatar_url":"https://avatars3.githubusercontent.com/u/8825476?v=4","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://avatars3.githubusercontent.com/u/8825476?v=4","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":"2017-10-17T17:36:40Z","pushed_at":"2017-10-27T16:53:51Z","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":37,"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":740,"mirror_url":null,"archived":false,"open_issues_count":538,"forks":740,"open_issues":538,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/728"},"html":{"href":"https://github.com/learn-co-students/ttt-with-ai-project-v-000/pull/728"},"issue":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/issues/728"},"comments":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/issues/728/comments"},"review_comments":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/pulls/728/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/728/commits"},"statuses":{"href":"https://api.github.com/repos/learn-co-students/ttt-with-ai-project-v-000/statuses/496550de0c087b98d266499d53bf6afd0c3db255"}},"author_association":"NONE"}}
{"actor":{"display_login":"jilustrisimo"}}