payload: {"action":"created","comment":{"url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/pulls/comments/257526493","pull_request_review_id":204583495,"id":257526493,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1NzUyNjQ5Mw==","diff_hunk":"@@ -75,14 +80,80 @@ function setData() {\n }\n \n //Map could contain 128x128 celestialPoint() objects\n-var gameSpace = {\n-  map : [spaceship.maxCoord + 1][spaceship.maxCoord + 1],\n-}\n+var gameSpace = [];\n+window.onload = function() {\n+  // Initialize gameSpace\n+  for (var i = 0; i <= spaceship.maxCoord; i++) {\n+    var CPRow = [];\n+    for (var j = 0; j <= spaceship.maxCoord; j++) {\n+      CPRow.push(new celestialPoint([i, j]));\n+    }\n+    gameSpace.push(CPRow);\n+  }\n \n-function celestialPoint() {\n+  // Display starting CP\n+  spaceship.displayCurrentCP();\n+};\n \n-  this.planet = false;\n-  this.asteroid = false;\n+\n+function celestialPoint(location) {\n+  this.location = location,\n+  this.celestialObjects = [];","path":"gameObjects.js","position":46,"original_position":46,"commit_id":"c1d77baa5e106e76057c5e94f383d24b54b2b808","original_commit_id":"c1d77baa5e106e76057c5e94f383d24b54b2b808","user":{"login":"hound[bot]","id":30008653,"node_id":"MDM6Qm90MzAwMDg2NTM=","avatar_url":"https://avatars1.githubusercontent.com/in/3598?v=4","gravatar_id":"","url":"https://api.github.com/users/hound%5Bbot%5D","html_url":"https://github.com/apps/hound","followers_url":"https://api.github.com/users/hound%5Bbot%5D/followers","following_url":"https://api.github.com/users/hound%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/hound%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/hound%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hound%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/hound%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/hound%5Bbot%5D/repos","events_url":"https://api.github.com/users/hound%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/hound%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Expected an assignment or function call and instead saw an expression.","created_at":"2019-02-17T22:23:08Z","updated_at":"2019-02-17T22:23:08Z","html_url":"https://github.com/halyngoc/CS300-Group3-SpaceHunt/pull/15#discussion_r257526493","pull_request_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/pulls/15","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/pulls/comments/257526493"},"html":{"href":"https://github.com/halyngoc/CS300-Group3-SpaceHunt/pull/15#discussion_r257526493"},"pull_request":{"href":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/pulls/15","id":253679386,"node_id":"MDExOlB1bGxSZXF1ZXN0MjUzNjc5Mzg2","html_url":"https://github.com/halyngoc/CS300-Group3-SpaceHunt/pull/15","diff_url":"https://github.com/halyngoc/CS300-Group3-SpaceHunt/pull/15.diff","patch_url":"https://github.com/halyngoc/CS300-Group3-SpaceHunt/pull/15.patch","issue_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/issues/15","number":15,"state":"open","locked":false,"title":"WIP US-6 Sensors & US-7 Celestial Map","user":{"login":"halyngoc","id":22557865,"node_id":"MDQ6VXNlcjIyNTU3ODY1","avatar_url":"https://avatars2.githubusercontent.com/u/22557865?v=4","gravatar_id":"","url":"https://api.github.com/users/halyngoc","html_url":"https://github.com/halyngoc","followers_url":"https://api.github.com/users/halyngoc/followers","following_url":"https://api.github.com/users/halyngoc/following{/other_user}","gists_url":"https://api.github.com/users/halyngoc/gists{/gist_id}","starred_url":"https://api.github.com/users/halyngoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halyngoc/subscriptions","organizations_url":"https://api.github.com/users/halyngoc/orgs","repos_url":"https://api.github.com/users/halyngoc/repos","events_url":"https://api.github.com/users/halyngoc/events{/privacy}","received_events_url":"https://api.github.com/users/halyngoc/received_events","type":"User","site_admin":false},"body":"Closes #7, closes #8.\r\n\r\nNormally I'd hate making one PR do 2 things but they're dependent on each other so idk how else I can do this.\r\n\r\nAlso while working on these USs I found 3 words that seemingly mean the same thing: _celestial bodies_, _celestial objects_, and _celestial artifacts_. I'll assume they're the same until someone tells me otherwise.\r\n\r\nTo-do for sensors:\r\n- [x] Display the current CP at the start of the game and on every move (All CPs are empty atm and we do not have any US that implements it)\r\n- [x] Display all nearby CPs when the sensors are deployed (we haven't implemented turns yet)\r\n- [x] Consume supplies when sensors are deployed\r\n- [ ] Add celestial objects (COs) found to Celestial Map\r\n- [ ] Verify\r\n\r\nTo-do for Celestial Map (CM):\r\n- [ ] Implement CM\r\n- [ ] Implement Celeron, Xeon, and Ryzen and put them on the CM\r\n- [ ] Verify","created_at":"2019-02-17T01:02:13Z","updated_at":"2019-02-17T22:23:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6dc2d4d407e993db5136b4f61ea441ce7e5ab4a0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/pulls/15/commits","review_comments_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/pulls/15/comments","review_comment_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/issues/15/comments","statuses_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/statuses/c1d77baa5e106e76057c5e94f383d24b54b2b808","head":{"label":"halyngoc:sensors","ref":"sensors","sha":"c1d77baa5e106e76057c5e94f383d24b54b2b808","user":{"login":"halyngoc","id":22557865,"node_id":"MDQ6VXNlcjIyNTU3ODY1","avatar_url":"https://avatars2.githubusercontent.com/u/22557865?v=4","gravatar_id":"","url":"https://api.github.com/users/halyngoc","html_url":"https://github.com/halyngoc","followers_url":"https://api.github.com/users/halyngoc/followers","following_url":"https://api.github.com/users/halyngoc/following{/other_user}","gists_url":"https://api.github.com/users/halyngoc/gists{/gist_id}","starred_url":"https://api.github.com/users/halyngoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halyngoc/subscriptions","organizations_url":"https://api.github.com/users/halyngoc/orgs","repos_url":"https://api.github.com/users/halyngoc/repos","events_url":"https://api.github.com/users/halyngoc/events{/privacy}","received_events_url":"https://api.github.com/users/halyngoc/received_events","type":"User","site_admin":false},"repo":{"id":169323577,"node_id":"MDEwOlJlcG9zaXRvcnkxNjkzMjM1Nzc=","name":"CS300-Group3-SpaceHunt","full_name":"halyngoc/CS300-Group3-SpaceHunt","private":false,"owner":{"login":"halyngoc","id":22557865,"node_id":"MDQ6VXNlcjIyNTU3ODY1","avatar_url":"https://avatars2.githubusercontent.com/u/22557865?v=4","gravatar_id":"","url":"https://api.github.com/users/halyngoc","html_url":"https://github.com/halyngoc","followers_url":"https://api.github.com/users/halyngoc/followers","following_url":"https://api.github.com/users/halyngoc/following{/other_user}","gists_url":"https://api.github.com/users/halyngoc/gists{/gist_id}","starred_url":"https://api.github.com/users/halyngoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halyngoc/subscriptions","organizations_url":"https://api.github.com/users/halyngoc/orgs","repos_url":"https://api.github.com/users/halyngoc/repos","events_url":"https://api.github.com/users/halyngoc/events{/privacy}","received_events_url":"https://api.github.com/users/halyngoc/received_events","type":"User","site_admin":false},"html_url":"https://github.com/halyngoc/CS300-Group3-SpaceHunt","description":"A CS 300 project called SpaceHunt","fork":false,"url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt","forks_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/forks","keys_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/teams","hooks_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/hooks","issue_events_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/issues/events{/number}","events_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/events","assignees_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/assignees{/user}","branches_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/branches{/branch}","tags_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/tags","blobs_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/git/refs{/sha}","trees_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/statuses/{sha}","languages_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/languages","stargazers_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/stargazers","contributors_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/contributors","subscribers_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/subscribers","subscription_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/subscription","commits_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/commits{/sha}","git_commits_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/git/commits{/sha}","comments_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/comments{/number}","issue_comment_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/issues/comments{/number}","contents_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/contents/{+path}","compare_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/merges","archive_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/downloads","issues_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/issues{/number}","pulls_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/pulls{/number}","milestones_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/milestones{/number}","notifications_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/labels{/name}","releases_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/releases{/id}","deployments_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/deployments","created_at":"2019-02-05T22:32:08Z","updated_at":"2019-02-14T23:37:08Z","pushed_at":"2019-02-17T22:23:06Z","git_url":"git://github.com/halyngoc/CS300-Group3-SpaceHunt.git","ssh_url":"git@github.com:halyngoc/CS300-Group3-SpaceHunt.git","clone_url":"https://github.com/halyngoc/CS300-Group3-SpaceHunt.git","svn_url":"https://github.com/halyngoc/CS300-Group3-SpaceHunt","homepage":null,"size":52,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":13,"watchers":2,"default_branch":"master"}},"base":{"label":"halyngoc:master","ref":"master","sha":"9dc0bebd0db09787eac751c8a50a1f279f684d66","user":{"login":"halyngoc","id":22557865,"node_id":"MDQ6VXNlcjIyNTU3ODY1","avatar_url":"https://avatars2.githubusercontent.com/u/22557865?v=4","gravatar_id":"","url":"https://api.github.com/users/halyngoc","html_url":"https://github.com/halyngoc","followers_url":"https://api.github.com/users/halyngoc/followers","following_url":"https://api.github.com/users/halyngoc/following{/other_user}","gists_url":"https://api.github.com/users/halyngoc/gists{/gist_id}","starred_url":"https://api.github.com/users/halyngoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halyngoc/subscriptions","organizations_url":"https://api.github.com/users/halyngoc/orgs","repos_url":"https://api.github.com/users/halyngoc/repos","events_url":"https://api.github.com/users/halyngoc/events{/privacy}","received_events_url":"https://api.github.com/users/halyngoc/received_events","type":"User","site_admin":false},"repo":{"id":169323577,"node_id":"MDEwOlJlcG9zaXRvcnkxNjkzMjM1Nzc=","name":"CS300-Group3-SpaceHunt","full_name":"halyngoc/CS300-Group3-SpaceHunt","private":false,"owner":{"login":"halyngoc","id":22557865,"node_id":"MDQ6VXNlcjIyNTU3ODY1","avatar_url":"https://avatars2.githubusercontent.com/u/22557865?v=4","gravatar_id":"","url":"https://api.github.com/users/halyngoc","html_url":"https://github.com/halyngoc","followers_url":"https://api.github.com/users/halyngoc/followers","following_url":"https://api.github.com/users/halyngoc/following{/other_user}","gists_url":"https://api.github.com/users/halyngoc/gists{/gist_id}","starred_url":"https://api.github.com/users/halyngoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halyngoc/subscriptions","organizations_url":"https://api.github.com/users/halyngoc/orgs","repos_url":"https://api.github.com/users/halyngoc/repos","events_url":"https://api.github.com/users/halyngoc/events{/privacy}","received_events_url":"https://api.github.com/users/halyngoc/received_events","type":"User","site_admin":false},"html_url":"https://github.com/halyngoc/CS300-Group3-SpaceHunt","description":"A CS 300 project called SpaceHunt","fork":false,"url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt","forks_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/forks","keys_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/teams","hooks_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/hooks","issue_events_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/issues/events{/number}","events_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/events","assignees_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/assignees{/user}","branches_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/branches{/branch}","tags_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/tags","blobs_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/git/refs{/sha}","trees_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/statuses/{sha}","languages_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/languages","stargazers_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/stargazers","contributors_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/contributors","subscribers_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/subscribers","subscription_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/subscription","commits_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/commits{/sha}","git_commits_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/git/commits{/sha}","comments_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/comments{/number}","issue_comment_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/issues/comments{/number}","contents_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/contents/{+path}","compare_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/merges","archive_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/downloads","issues_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/issues{/number}","pulls_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/pulls{/number}","milestones_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/milestones{/number}","notifications_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/labels{/name}","releases_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/releases{/id}","deployments_url":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/deployments","created_at":"2019-02-05T22:32:08Z","updated_at":"2019-02-14T23:37:08Z","pushed_at":"2019-02-17T22:23:06Z","git_url":"git://github.com/halyngoc/CS300-Group3-SpaceHunt.git","ssh_url":"git@github.com:halyngoc/CS300-Group3-SpaceHunt.git","clone_url":"https://github.com/halyngoc/CS300-Group3-SpaceHunt.git","svn_url":"https://github.com/halyngoc/CS300-Group3-SpaceHunt","homepage":null,"size":52,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":13,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/pulls/15"},"html":{"href":"https://github.com/halyngoc/CS300-Group3-SpaceHunt/pull/15"},"issue":{"href":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/issues/15"},"comments":{"href":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/halyngoc/CS300-Group3-SpaceHunt/statuses/c1d77baa5e106e76057c5e94f383d24b54b2b808"}},"author_association":"OWNER"}}
other: {"actor":{"display_login":"hound"}}