{"action":"created","comment":{"url":"https://api.github.com/repos/michaelkamerath/SharedServer/pulls/comments/89655256","pull_request_review_id":10200131,"id":89655256,"diff_hunk":"@@ -78,4 +80,98 @@ BOOST_AUTO_TEST_CASE(SerializeCard)\n   BOOST_CHECK_EQUAL(deserializeCard.getValue(), ACE);\n }\n \n+BOOST_AUTO_TEST_CASE(heartsGameInitialization)\n+{\n+  std::vector<Player> players;\n+  for (int i = 0; i < 4; i++)\n+  {\n+    Player newPlayer(i, \"123.123.123.\" + std::to_string(i));\n+    players.push_back(newPlayer);\n+  }\n+  HeartsGame game(players);\n+  BOOST_CHECK_EQUAL(game.getPlayers().size(), 4);\n+  for (int i = 0; i < 4; i++)\n+    BOOST_CHECK_EQUAL(game.getPlayers()[i].getId(), i);\n+  BOOST_CHECK_EQUAL(game.getCenterPile().size(), 0);\n+  game.play_Hearts();\n+  for (int i = 0; i < 4; i++)\n+    BOOST_CHECK_EQUAL(game.getPlayers()[i].getHand().size(), 13);\n+  Card twoOfClubs(CLUBS, TWO);\n+  int playerWithTwoOfClubs = -1;\n+  for (int i = 0; i < 4; i++)\n+  {\n+    for (int j = 0; j < game.getPlayers()[i].getHand().size(); j++)\n+    {\n+      if (game.getPlayers()[i].getHand()[j] == twoOfClubs)\n+        playerWithTwoOfClubs = i;\n+    }\n+  }\n+  BOOST_CHECK_EQUAL(game.findTwoOfClubs(), playerWithTwoOfClubs);\n+}\n+\n+// int findTwoOfClubs();\n+BOOST_AUTO_TEST_CASE(heartsGamefindTwoOfClubs)\n+{\n+\n+  std::vector<Player> players;\n+  for (int i = 0; i < 4; i++)\n+  {\n+    Player newPlayer(i, \"123.123.123.\" + std::to_string(i));\n+    players.push_back(newPlayer);\n+  }\n+  HeartsGame game(players);\n+  game.play_Hearts();\n+\n+  for (size_t i = 0; i < players.size(); ++i)\n+  {\n+    std::vector<Card> temp = players[i].getHand();","path":"test/Test.cpp","position":57,"original_position":57,"commit_id":"a64d852a668a1d39e684410fbdc568da87ceb0ea","original_commit_id":"a64d852a668a1d39e684410fbdc568da87ceb0ea","user":{"login":"michaelkamerath","id":10928325,"avatar_url":"https://avatars.githubusercontent.com/u/10928325?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelkamerath","html_url":"https://github.com/michaelkamerath","followers_url":"https://api.github.com/users/michaelkamerath/followers","following_url":"https://api.github.com/users/michaelkamerath/following{/other_user}","gists_url":"https://api.github.com/users/michaelkamerath/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelkamerath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelkamerath/subscriptions","organizations_url":"https://api.github.com/users/michaelkamerath/orgs","repos_url":"https://api.github.com/users/michaelkamerath/repos","events_url":"https://api.github.com/users/michaelkamerath/events{/privacy}","received_events_url":"https://api.github.com/users/michaelkamerath/received_events","type":"User","site_admin":false},"body":".at(i)","created_at":"2016-11-25T20:23:39Z","updated_at":"2016-11-25T20:27:59Z","html_url":"https://github.com/michaelkamerath/SharedServer/pull/45#discussion_r89655256","pull_request_url":"https://api.github.com/repos/michaelkamerath/SharedServer/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/michaelkamerath/SharedServer/pulls/comments/89655256"},"html":{"href":"https://github.com/michaelkamerath/SharedServer/pull/45#discussion_r89655256"},"pull_request":{"href":"https://api.github.com/repos/michaelkamerath/SharedServer/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/michaelkamerath/SharedServer/pulls/45","id":95104036,"html_url":"https://github.com/michaelkamerath/SharedServer/pull/45","diff_url":"https://github.com/michaelkamerath/SharedServer/pull/45.diff","patch_url":"https://github.com/michaelkamerath/SharedServer/pull/45.patch","issue_url":"https://api.github.com/repos/michaelkamerath/SharedServer/issues/45","number":45,"state":"closed","locked":false,"title":"Added Hearts Unit Tests","user":{"login":"trevorjewkes","id":16653727,"avatar_url":"https://avatars.githubusercontent.com/u/16653727?v=3","gravatar_id":"","url":"https://api.github.com/users/trevorjewkes","html_url":"https://github.com/trevorjewkes","followers_url":"https://api.github.com/users/trevorjewkes/followers","following_url":"https://api.github.com/users/trevorjewkes/following{/other_user}","gists_url":"https://api.github.com/users/trevorjewkes/gists{/gist_id}","starred_url":"https://api.github.com/users/trevorjewkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevorjewkes/subscriptions","organizations_url":"https://api.github.com/users/trevorjewkes/orgs","repos_url":"https://api.github.com/users/trevorjewkes/repos","events_url":"https://api.github.com/users/trevorjewkes/events{/privacy}","received_events_url":"https://api.github.com/users/trevorjewkes/received_events","type":"User","site_admin":false},"body":"Resolves Issue #30","created_at":"2016-11-24T01:23:46Z","updated_at":"2016-11-25T20:27:59Z","closed_at":"2016-11-25T19:43:05Z","merged_at":"2016-11-25T19:43:05Z","merge_commit_sha":"e814970a45a8f799e7396c3e0e929c8592d8641c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/michaelkamerath/SharedServer/pulls/45/commits","review_comments_url":"https://api.github.com/repos/michaelkamerath/SharedServer/pulls/45/comments","review_comment_url":"https://api.github.com/repos/michaelkamerath/SharedServer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/michaelkamerath/SharedServer/issues/45/comments","statuses_url":"https://api.github.com/repos/michaelkamerath/SharedServer/statuses/a64d852a668a1d39e684410fbdc568da87ceb0ea","head":{"label":"trevorjewkes:master","ref":"master","sha":"a64d852a668a1d39e684410fbdc568da87ceb0ea","user":{"login":"trevorjewkes","id":16653727,"avatar_url":"https://avatars.githubusercontent.com/u/16653727?v=3","gravatar_id":"","url":"https://api.github.com/users/trevorjewkes","html_url":"https://github.com/trevorjewkes","followers_url":"https://api.github.com/users/trevorjewkes/followers","following_url":"https://api.github.com/users/trevorjewkes/following{/other_user}","gists_url":"https://api.github.com/users/trevorjewkes/gists{/gist_id}","starred_url":"https://api.github.com/users/trevorjewkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevorjewkes/subscriptions","organizations_url":"https://api.github.com/users/trevorjewkes/orgs","repos_url":"https://api.github.com/users/trevorjewkes/repos","events_url":"https://api.github.com/users/trevorjewkes/events{/privacy}","received_events_url":"https://api.github.com/users/trevorjewkes/received_events","type":"User","site_admin":false},"repo":{"id":70357946,"name":"SharedServer","full_name":"trevorjewkes/SharedServer","owner":{"login":"trevorjewkes","id":16653727,"avatar_url":"https://avatars.githubusercontent.com/u/16653727?v=3","gravatar_id":"","url":"https://api.github.com/users/trevorjewkes","html_url":"https://github.com/trevorjewkes","followers_url":"https://api.github.com/users/trevorjewkes/followers","following_url":"https://api.github.com/users/trevorjewkes/following{/other_user}","gists_url":"https://api.github.com/users/trevorjewkes/gists{/gist_id}","starred_url":"https://api.github.com/users/trevorjewkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevorjewkes/subscriptions","organizations_url":"https://api.github.com/users/trevorjewkes/orgs","repos_url":"https://api.github.com/users/trevorjewkes/repos","events_url":"https://api.github.com/users/trevorjewkes/events{/privacy}","received_events_url":"https://api.github.com/users/trevorjewkes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trevorjewkes/SharedServer","description":null,"fork":true,"url":"https://api.github.com/repos/trevorjewkes/SharedServer","forks_url":"https://api.github.com/repos/trevorjewkes/SharedServer/forks","keys_url":"https://api.github.com/repos/trevorjewkes/SharedServer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trevorjewkes/SharedServer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trevorjewkes/SharedServer/teams","hooks_url":"https://api.github.com/repos/trevorjewkes/SharedServer/hooks","issue_events_url":"https://api.github.com/repos/trevorjewkes/SharedServer/issues/events{/number}","events_url":"https://api.github.com/repos/trevorjewkes/SharedServer/events","assignees_url":"https://api.github.com/repos/trevorjewkes/SharedServer/assignees{/user}","branches_url":"https://api.github.com/repos/trevorjewkes/SharedServer/branches{/branch}","tags_url":"https://api.github.com/repos/trevorjewkes/SharedServer/tags","blobs_url":"https://api.github.com/repos/trevorjewkes/SharedServer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trevorjewkes/SharedServer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trevorjewkes/SharedServer/git/refs{/sha}","trees_url":"https://api.github.com/repos/trevorjewkes/SharedServer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trevorjewkes/SharedServer/statuses/{sha}","languages_url":"https://api.github.com/repos/trevorjewkes/SharedServer/languages","stargazers_url":"https://api.github.com/repos/trevorjewkes/SharedServer/stargazers","contributors_url":"https://api.github.com/repos/trevorjewkes/SharedServer/contributors","subscribers_url":"https://api.github.com/repos/trevorjewkes/SharedServer/subscribers","subscription_url":"https://api.github.com/repos/trevorjewkes/SharedServer/subscription","commits_url":"https://api.github.com/repos/trevorjewkes/SharedServer/commits{/sha}","git_commits_url":"https://api.github.com/repos/trevorjewkes/SharedServer/git/commits{/sha}","comments_url":"https://api.github.com/repos/trevorjewkes/SharedServer/comments{/number}","issue_comment_url":"https://api.github.com/repos/trevorjewkes/SharedServer/issues/comments{/number}","contents_url":"https://api.github.com/repos/trevorjewkes/SharedServer/contents/{+path}","compare_url":"https://api.github.com/repos/trevorjewkes/SharedServer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trevorjewkes/SharedServer/merges","archive_url":"https://api.github.com/repos/trevorjewkes/SharedServer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trevorjewkes/SharedServer/downloads","issues_url":"https://api.github.com/repos/trevorjewkes/SharedServer/issues{/number}","pulls_url":"https://api.github.com/repos/trevorjewkes/SharedServer/pulls{/number}","milestones_url":"https://api.github.com/repos/trevorjewkes/SharedServer/milestones{/number}","notifications_url":"https://api.github.com/repos/trevorjewkes/SharedServer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trevorjewkes/SharedServer/labels{/name}","releases_url":"https://api.github.com/repos/trevorjewkes/SharedServer/releases{/id}","deployments_url":"https://api.github.com/repos/trevorjewkes/SharedServer/deployments","created_at":"2016-10-08T21:17:22Z","updated_at":"2016-11-03T19:11:30Z","pushed_at":"2016-11-24T01:21:03Z","git_url":"git://github.com/trevorjewkes/SharedServer.git","ssh_url":"git@github.com:trevorjewkes/SharedServer.git","clone_url":"https://github.com/trevorjewkes/SharedServer.git","svn_url":"https://github.com/trevorjewkes/SharedServer","homepage":null,"size":573,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"michaelkamerath:master","ref":"master","sha":"4381b06306d066b020a3e849db06bc90331f9b04","user":{"login":"michaelkamerath","id":10928325,"avatar_url":"https://avatars.githubusercontent.com/u/10928325?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelkamerath","html_url":"https://github.com/michaelkamerath","followers_url":"https://api.github.com/users/michaelkamerath/followers","following_url":"https://api.github.com/users/michaelkamerath/following{/other_user}","gists_url":"https://api.github.com/users/michaelkamerath/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelkamerath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelkamerath/subscriptions","organizations_url":"https://api.github.com/users/michaelkamerath/orgs","repos_url":"https://api.github.com/users/michaelkamerath/repos","events_url":"https://api.github.com/users/michaelkamerath/events{/privacy}","received_events_url":"https://api.github.com/users/michaelkamerath/received_events","type":"User","site_admin":false},"repo":{"id":70210329,"name":"SharedServer","full_name":"michaelkamerath/SharedServer","owner":{"login":"michaelkamerath","id":10928325,"avatar_url":"https://avatars.githubusercontent.com/u/10928325?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelkamerath","html_url":"https://github.com/michaelkamerath","followers_url":"https://api.github.com/users/michaelkamerath/followers","following_url":"https://api.github.com/users/michaelkamerath/following{/other_user}","gists_url":"https://api.github.com/users/michaelkamerath/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelkamerath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelkamerath/subscriptions","organizations_url":"https://api.github.com/users/michaelkamerath/orgs","repos_url":"https://api.github.com/users/michaelkamerath/repos","events_url":"https://api.github.com/users/michaelkamerath/events{/privacy}","received_events_url":"https://api.github.com/users/michaelkamerath/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michaelkamerath/SharedServer","description":null,"fork":false,"url":"https://api.github.com/repos/michaelkamerath/SharedServer","forks_url":"https://api.github.com/repos/michaelkamerath/SharedServer/forks","keys_url":"https://api.github.com/repos/michaelkamerath/SharedServer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michaelkamerath/SharedServer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michaelkamerath/SharedServer/teams","hooks_url":"https://api.github.com/repos/michaelkamerath/SharedServer/hooks","issue_events_url":"https://api.github.com/repos/michaelkamerath/SharedServer/issues/events{/number}","events_url":"https://api.github.com/repos/michaelkamerath/SharedServer/events","assignees_url":"https://api.github.com/repos/michaelkamerath/SharedServer/assignees{/user}","branches_url":"https://api.github.com/repos/michaelkamerath/SharedServer/branches{/branch}","tags_url":"https://api.github.com/repos/michaelkamerath/SharedServer/tags","blobs_url":"https://api.github.com/repos/michaelkamerath/SharedServer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michaelkamerath/SharedServer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michaelkamerath/SharedServer/git/refs{/sha}","trees_url":"https://api.github.com/repos/michaelkamerath/SharedServer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michaelkamerath/SharedServer/statuses/{sha}","languages_url":"https://api.github.com/repos/michaelkamerath/SharedServer/languages","stargazers_url":"https://api.github.com/repos/michaelkamerath/SharedServer/stargazers","contributors_url":"https://api.github.com/repos/michaelkamerath/SharedServer/contributors","subscribers_url":"https://api.github.com/repos/michaelkamerath/SharedServer/subscribers","subscription_url":"https://api.github.com/repos/michaelkamerath/SharedServer/subscription","commits_url":"https://api.github.com/repos/michaelkamerath/SharedServer/commits{/sha}","git_commits_url":"https://api.github.com/repos/michaelkamerath/SharedServer/git/commits{/sha}","comments_url":"https://api.github.com/repos/michaelkamerath/SharedServer/comments{/number}","issue_comment_url":"https://api.github.com/repos/michaelkamerath/SharedServer/issues/comments{/number}","contents_url":"https://api.github.com/repos/michaelkamerath/SharedServer/contents/{+path}","compare_url":"https://api.github.com/repos/michaelkamerath/SharedServer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michaelkamerath/SharedServer/merges","archive_url":"https://api.github.com/repos/michaelkamerath/SharedServer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michaelkamerath/SharedServer/downloads","issues_url":"https://api.github.com/repos/michaelkamerath/SharedServer/issues{/number}","pulls_url":"https://api.github.com/repos/michaelkamerath/SharedServer/pulls{/number}","milestones_url":"https://api.github.com/repos/michaelkamerath/SharedServer/milestones{/number}","notifications_url":"https://api.github.com/repos/michaelkamerath/SharedServer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michaelkamerath/SharedServer/labels{/name}","releases_url":"https://api.github.com/repos/michaelkamerath/SharedServer/releases{/id}","deployments_url":"https://api.github.com/repos/michaelkamerath/SharedServer/deployments","created_at":"2016-10-07T02:47:35Z","updated_at":"2016-11-17T03:37:32Z","pushed_at":"2016-11-25T20:23:18Z","git_url":"git://github.com/michaelkamerath/SharedServer.git","ssh_url":"git@github.com:michaelkamerath/SharedServer.git","clone_url":"https://github.com/michaelkamerath/SharedServer.git","svn_url":"https://github.com/michaelkamerath/SharedServer","homepage":null,"size":624,"stargazers_count":2,"watchers_count":2,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":8,"forks":18,"open_issues":8,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/michaelkamerath/SharedServer/pulls/45"},"html":{"href":"https://github.com/michaelkamerath/SharedServer/pull/45"},"issue":{"href":"https://api.github.com/repos/michaelkamerath/SharedServer/issues/45"},"comments":{"href":"https://api.github.com/repos/michaelkamerath/SharedServer/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/michaelkamerath/SharedServer/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/michaelkamerath/SharedServer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/michaelkamerath/SharedServer/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/michaelkamerath/SharedServer/statuses/a64d852a668a1d39e684410fbdc568da87ceb0ea"}}}}
{"actor":{"display_login":"michaelkamerath"}}