{"action":"created","comment":{"url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/pulls/comments/110124777","pull_request_review_id":31272564,"id":110124777,"diff_hunk":"@@ -0,0 +1,53 @@\n+#include \"Highscore.h\"\n+#include <time.h>\n+#include <iostream>\n+#include <fstream>\n+using namespace std;\n+\n+namespace highscores {\n+\tstruct highscore {\n+\t\tstd::string name;\n+\t\tstd::string timestamp;\n+\t\tdouble score;\t\t\n+\t};\n+}\n+\n+// Copyright http://stackoverflow.com/questions/997946/how-to-get-current-time-and-date-in-c\n+\n+// Get current date/time, format is YYYY-MM-DD.HH:mm:ss\n+const std::string currentDateTime() {\n+\ttime_t     now = time(0);\n+\tstruct tm  tstruct;\n+\tchar       buf[80];\n+\ttstruct = *localtime(&now);\n+\t// Visit http://en.cppreference.com/w/cpp/chrono/c/strftime\n+\t// for more information about date/time format\n+\tstrftime(buf, sizeof(buf), \"%Y-%m-%d.%X\", &tstruct);\n+\n+\treturn buf;\n+}\n+\n+Highscore::Highscore()\n+{\n+}\n+\n+Highscore::~Highscore()\n+{\n+}\n+\n+// https://cboard.cprogramming.com/c-programming/135750-scoreboard-saved-txt-file.html\n+// https://stackoverflow.com/questions/15388041/how-to-write-stdstring-to-file\n+void Highscore::addToScoreboard(std::string name, double score)","path":"PGT2/Game/src/Highscore.cpp","position":40,"original_position":40,"commit_id":"1e887c3ebdde0d6de4c92586cce1ec0e19a533ff","original_commit_id":"1e887c3ebdde0d6de4c92586cce1ec0e19a533ff","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars2.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [The function 'addToScoreboard' is never used.](https://www.codacy.com/app/raoulwoerkom/PGT_Team2/pullRequest?prid=584841)","created_at":"2017-04-06T10:09:35Z","updated_at":"2017-04-06T10:09:35Z","html_url":"https://github.com/RaoulvanWoerkom/PGT_Team2/pull/6#discussion_r110124777","pull_request_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/pulls/comments/110124777"},"html":{"href":"https://github.com/RaoulvanWoerkom/PGT_Team2/pull/6#discussion_r110124777"},"pull_request":{"href":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/pulls/6","id":113399954,"html_url":"https://github.com/RaoulvanWoerkom/PGT_Team2/pull/6","diff_url":"https://github.com/RaoulvanWoerkom/PGT_Team2/pull/6.diff","patch_url":"https://github.com/RaoulvanWoerkom/PGT_Team2/pull/6.patch","issue_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/issues/6","number":6,"state":"open","locked":false,"title":"Development","user":{"login":"Julian-Zipper","id":5969228,"avatar_url":"https://avatars2.githubusercontent.com/u/5969228?v=3","gravatar_id":"","url":"https://api.github.com/users/Julian-Zipper","html_url":"https://github.com/Julian-Zipper","followers_url":"https://api.github.com/users/Julian-Zipper/followers","following_url":"https://api.github.com/users/Julian-Zipper/following{/other_user}","gists_url":"https://api.github.com/users/Julian-Zipper/gists{/gist_id}","starred_url":"https://api.github.com/users/Julian-Zipper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Julian-Zipper/subscriptions","organizations_url":"https://api.github.com/users/Julian-Zipper/orgs","repos_url":"https://api.github.com/users/Julian-Zipper/repos","events_url":"https://api.github.com/users/Julian-Zipper/events{/privacy}","received_events_url":"https://api.github.com/users/Julian-Zipper/received_events","type":"User","site_admin":false},"body":"Sprint 1 version","created_at":"2017-03-30T10:53:53Z","updated_at":"2017-04-06T10:09:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03025717cfcfb384a4071697a1b488f267950339","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/pulls/6/commits","review_comments_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/pulls/6/comments","review_comment_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/issues/6/comments","statuses_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/statuses/1e887c3ebdde0d6de4c92586cce1ec0e19a533ff","head":{"label":"RaoulvanWoerkom:Development","ref":"Development","sha":"1e887c3ebdde0d6de4c92586cce1ec0e19a533ff","user":{"login":"RaoulvanWoerkom","id":6196090,"avatar_url":"https://avatars1.githubusercontent.com/u/6196090?v=3","gravatar_id":"","url":"https://api.github.com/users/RaoulvanWoerkom","html_url":"https://github.com/RaoulvanWoerkom","followers_url":"https://api.github.com/users/RaoulvanWoerkom/followers","following_url":"https://api.github.com/users/RaoulvanWoerkom/following{/other_user}","gists_url":"https://api.github.com/users/RaoulvanWoerkom/gists{/gist_id}","starred_url":"https://api.github.com/users/RaoulvanWoerkom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaoulvanWoerkom/subscriptions","organizations_url":"https://api.github.com/users/RaoulvanWoerkom/orgs","repos_url":"https://api.github.com/users/RaoulvanWoerkom/repos","events_url":"https://api.github.com/users/RaoulvanWoerkom/events{/privacy}","received_events_url":"https://api.github.com/users/RaoulvanWoerkom/received_events","type":"User","site_admin":false},"repo":{"id":81083888,"name":"PGT_Team2","full_name":"RaoulvanWoerkom/PGT_Team2","owner":{"login":"RaoulvanWoerkom","id":6196090,"avatar_url":"https://avatars1.githubusercontent.com/u/6196090?v=3","gravatar_id":"","url":"https://api.github.com/users/RaoulvanWoerkom","html_url":"https://github.com/RaoulvanWoerkom","followers_url":"https://api.github.com/users/RaoulvanWoerkom/followers","following_url":"https://api.github.com/users/RaoulvanWoerkom/following{/other_user}","gists_url":"https://api.github.com/users/RaoulvanWoerkom/gists{/gist_id}","starred_url":"https://api.github.com/users/RaoulvanWoerkom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaoulvanWoerkom/subscriptions","organizations_url":"https://api.github.com/users/RaoulvanWoerkom/orgs","repos_url":"https://api.github.com/users/RaoulvanWoerkom/repos","events_url":"https://api.github.com/users/RaoulvanWoerkom/events{/privacy}","received_events_url":"https://api.github.com/users/RaoulvanWoerkom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RaoulvanWoerkom/PGT_Team2","description":null,"fork":false,"url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2","forks_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/forks","keys_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/teams","hooks_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/hooks","issue_events_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/issues/events{/number}","events_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/events","assignees_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/assignees{/user}","branches_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/branches{/branch}","tags_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/tags","blobs_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/git/refs{/sha}","trees_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/statuses/{sha}","languages_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/languages","stargazers_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/stargazers","contributors_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/contributors","subscribers_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/subscribers","subscription_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/subscription","commits_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/commits{/sha}","git_commits_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/git/commits{/sha}","comments_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/comments{/number}","issue_comment_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/issues/comments{/number}","contents_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/contents/{+path}","compare_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/merges","archive_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/downloads","issues_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/issues{/number}","pulls_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/pulls{/number}","milestones_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/milestones{/number}","notifications_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/labels{/name}","releases_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/releases{/id}","deployments_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/deployments","created_at":"2017-02-06T12:15:10Z","updated_at":"2017-03-16T10:21:11Z","pushed_at":"2017-04-06T10:07:31Z","git_url":"git://github.com/RaoulvanWoerkom/PGT_Team2.git","ssh_url":"git@github.com:RaoulvanWoerkom/PGT_Team2.git","clone_url":"https://github.com/RaoulvanWoerkom/PGT_Team2.git","svn_url":"https://github.com/RaoulvanWoerkom/PGT_Team2","homepage":null,"size":12776,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"RaoulvanWoerkom:master","ref":"master","sha":"d8337903e73c719fe576bc30e7017f5acd24a0e7","user":{"login":"RaoulvanWoerkom","id":6196090,"avatar_url":"https://avatars1.githubusercontent.com/u/6196090?v=3","gravatar_id":"","url":"https://api.github.com/users/RaoulvanWoerkom","html_url":"https://github.com/RaoulvanWoerkom","followers_url":"https://api.github.com/users/RaoulvanWoerkom/followers","following_url":"https://api.github.com/users/RaoulvanWoerkom/following{/other_user}","gists_url":"https://api.github.com/users/RaoulvanWoerkom/gists{/gist_id}","starred_url":"https://api.github.com/users/RaoulvanWoerkom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaoulvanWoerkom/subscriptions","organizations_url":"https://api.github.com/users/RaoulvanWoerkom/orgs","repos_url":"https://api.github.com/users/RaoulvanWoerkom/repos","events_url":"https://api.github.com/users/RaoulvanWoerkom/events{/privacy}","received_events_url":"https://api.github.com/users/RaoulvanWoerkom/received_events","type":"User","site_admin":false},"repo":{"id":81083888,"name":"PGT_Team2","full_name":"RaoulvanWoerkom/PGT_Team2","owner":{"login":"RaoulvanWoerkom","id":6196090,"avatar_url":"https://avatars1.githubusercontent.com/u/6196090?v=3","gravatar_id":"","url":"https://api.github.com/users/RaoulvanWoerkom","html_url":"https://github.com/RaoulvanWoerkom","followers_url":"https://api.github.com/users/RaoulvanWoerkom/followers","following_url":"https://api.github.com/users/RaoulvanWoerkom/following{/other_user}","gists_url":"https://api.github.com/users/RaoulvanWoerkom/gists{/gist_id}","starred_url":"https://api.github.com/users/RaoulvanWoerkom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaoulvanWoerkom/subscriptions","organizations_url":"https://api.github.com/users/RaoulvanWoerkom/orgs","repos_url":"https://api.github.com/users/RaoulvanWoerkom/repos","events_url":"https://api.github.com/users/RaoulvanWoerkom/events{/privacy}","received_events_url":"https://api.github.com/users/RaoulvanWoerkom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RaoulvanWoerkom/PGT_Team2","description":null,"fork":false,"url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2","forks_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/forks","keys_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/teams","hooks_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/hooks","issue_events_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/issues/events{/number}","events_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/events","assignees_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/assignees{/user}","branches_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/branches{/branch}","tags_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/tags","blobs_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/git/refs{/sha}","trees_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/statuses/{sha}","languages_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/languages","stargazers_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/stargazers","contributors_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/contributors","subscribers_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/subscribers","subscription_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/subscription","commits_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/commits{/sha}","git_commits_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/git/commits{/sha}","comments_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/comments{/number}","issue_comment_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/issues/comments{/number}","contents_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/contents/{+path}","compare_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/merges","archive_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/downloads","issues_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/issues{/number}","pulls_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/pulls{/number}","milestones_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/milestones{/number}","notifications_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/labels{/name}","releases_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/releases{/id}","deployments_url":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/deployments","created_at":"2017-02-06T12:15:10Z","updated_at":"2017-03-16T10:21:11Z","pushed_at":"2017-04-06T10:07:31Z","git_url":"git://github.com/RaoulvanWoerkom/PGT_Team2.git","ssh_url":"git@github.com:RaoulvanWoerkom/PGT_Team2.git","clone_url":"https://github.com/RaoulvanWoerkom/PGT_Team2.git","svn_url":"https://github.com/RaoulvanWoerkom/PGT_Team2","homepage":null,"size":12776,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/pulls/6"},"html":{"href":"https://github.com/RaoulvanWoerkom/PGT_Team2/pull/6"},"issue":{"href":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/issues/6"},"comments":{"href":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/RaoulvanWoerkom/PGT_Team2/statuses/1e887c3ebdde0d6de4c92586cce1ec0e19a533ff"}}}}
{"actor":{"display_login":"codacy-bot"}}