{"action":"created","comment":{"url":"https://api.github.com/repos/jacobgardner/monopoly-server/pulls/comments/80155682","id":80155682,"diff_hunk":"@@ -1,189 +1,184 @@\n-import BoardState from \"./boardState\";\n-import Player from \"./player\";\n+import BoardState from './boardState';\n+import Dice from './dice';\n+import Player from './player';\n import fs from 'fs';\n import events from 'events';\n import randomjs from 'random-js';\n-import {standardProperty, railroad, utility, eventCard, noEvent, go, goToJail, incomeTax, luxuryTax} from \"./landOnFunctions\";\n+import {standardProperty, railroad, utility, eventCard, noEvent, go, goToJail, incomeTax, luxuryTax} from './landOnFunctions';\n \n export default class Monopoly {\n-  constructor(){\n-    this.propertyArray = null;\n-    this.chanceList = null;\n-    this.commChestList = null;\n-    this.playerArray = new Array(0);\n-    this.currentPlayer = null;\n-    this.emitter = new events();\n-    this.random = new randomjs();\n-  }\n-\n-  loadPlayer(name, regID, socketID){\n-    const regArray = JSON.parse(fs.readFileSync('./dist/regIDArray.json'));\n-    //TODO: Check for registered ID\n-    if(regArray.indexOf(regID) >= 0){\n-      this.playerArray.push(new Player(name, regID, socketID));\n-      console.log('Player ' + this.playerArray[this.playerArray.length - 1].person + ' added.');\n-      if(regArray.length == this.playerArray.length){\n-        console.log('runGame');\n-        this.runGame();\n+    constructor(){\n+        this.propertyArray = null;\n+        this.chanceList = null;\n+        this.commChestList = null;\n+        this.playerArray = new Array(0);\n+        this.currentPlayer = null;\n+        this.emitter = new events();\n+        this.random = new randomjs();\n+    }\n+\n+    loadPlayer(name, regID, socketID){\n+        const regArray = JSON.parse(fs.readFileSync('./dist/regIDArray.json'));\n+        //TODO: Check for registered ID\n+        if(regArray.indexOf(regID) >= 0){\n+            this.playerArray.push(new Player(name, regID, socketID));\n+            console.log('Player ' + this.playerArray[this.playerArray.length - 1].person + ' added.');\n+            if(regArray.length == this.playerArray.length){","path":"src/monopoly.js","position":48,"original_position":48,"commit_id":"fdb5e49aaf92cbc09bc74d0072373d3c749bc7ca","original_commit_id":"fdb5e49aaf92cbc09bc74d0072373d3c749bc7ca","user":{"login":"jacobgardner","id":245622,"avatar_url":"https://avatars.githubusercontent.com/u/245622?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobgardner","html_url":"https://github.com/jacobgardner","followers_url":"https://api.github.com/users/jacobgardner/followers","following_url":"https://api.github.com/users/jacobgardner/following{/other_user}","gists_url":"https://api.github.com/users/jacobgardner/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobgardner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobgardner/subscriptions","organizations_url":"https://api.github.com/users/jacobgardner/orgs","repos_url":"https://api.github.com/users/jacobgardner/repos","events_url":"https://api.github.com/users/jacobgardner/events{/privacy}","received_events_url":"https://api.github.com/users/jacobgardner/received_events","type":"User","site_admin":false},"body":"`===`","created_at":"2016-09-22T23:11:19Z","updated_at":"2016-09-22T23:40:39Z","html_url":"https://github.com/jacobgardner/monopoly-server/pull/3#discussion_r80155682","pull_request_url":"https://api.github.com/repos/jacobgardner/monopoly-server/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/jacobgardner/monopoly-server/pulls/comments/80155682"},"html":{"href":"https://github.com/jacobgardner/monopoly-server/pull/3#discussion_r80155682"},"pull_request":{"href":"https://api.github.com/repos/jacobgardner/monopoly-server/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/jacobgardner/monopoly-server/pulls/3","id":86426179,"html_url":"https://github.com/jacobgardner/monopoly-server/pull/3","diff_url":"https://github.com/jacobgardner/monopoly-server/pull/3.diff","patch_url":"https://github.com/jacobgardner/monopoly-server/pull/3.patch","issue_url":"https://api.github.com/repos/jacobgardner/monopoly-server/issues/3","number":3,"state":"open","locked":false,"title":"More Jim Comments","user":{"login":"jacobgardner","id":245622,"avatar_url":"https://avatars.githubusercontent.com/u/245622?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobgardner","html_url":"https://github.com/jacobgardner","followers_url":"https://api.github.com/users/jacobgardner/followers","following_url":"https://api.github.com/users/jacobgardner/following{/other_user}","gists_url":"https://api.github.com/users/jacobgardner/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobgardner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobgardner/subscriptions","organizations_url":"https://api.github.com/users/jacobgardner/orgs","repos_url":"https://api.github.com/users/jacobgardner/repos","events_url":"https://api.github.com/users/jacobgardner/events{/privacy}","received_events_url":"https://api.github.com/users/jacobgardner/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-22T22:32:06Z","updated_at":"2016-09-22T23:40:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78bc585e9d92b39ca9ce3a3c03891182e4188b21","assignee":{"login":"jacobgardner","id":245622,"avatar_url":"https://avatars.githubusercontent.com/u/245622?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobgardner","html_url":"https://github.com/jacobgardner","followers_url":"https://api.github.com/users/jacobgardner/followers","following_url":"https://api.github.com/users/jacobgardner/following{/other_user}","gists_url":"https://api.github.com/users/jacobgardner/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobgardner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobgardner/subscriptions","organizations_url":"https://api.github.com/users/jacobgardner/orgs","repos_url":"https://api.github.com/users/jacobgardner/repos","events_url":"https://api.github.com/users/jacobgardner/events{/privacy}","received_events_url":"https://api.github.com/users/jacobgardner/received_events","type":"User","site_admin":false},"assignees":[{"login":"jacobgardner","id":245622,"avatar_url":"https://avatars.githubusercontent.com/u/245622?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobgardner","html_url":"https://github.com/jacobgardner","followers_url":"https://api.github.com/users/jacobgardner/followers","following_url":"https://api.github.com/users/jacobgardner/following{/other_user}","gists_url":"https://api.github.com/users/jacobgardner/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobgardner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobgardner/subscriptions","organizations_url":"https://api.github.com/users/jacobgardner/orgs","repos_url":"https://api.github.com/users/jacobgardner/repos","events_url":"https://api.github.com/users/jacobgardner/events{/privacy}","received_events_url":"https://api.github.com/users/jacobgardner/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/jacobgardner/monopoly-server/pulls/3/commits","review_comments_url":"https://api.github.com/repos/jacobgardner/monopoly-server/pulls/3/comments","review_comment_url":"https://api.github.com/repos/jacobgardner/monopoly-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jacobgardner/monopoly-server/issues/3/comments","statuses_url":"https://api.github.com/repos/jacobgardner/monopoly-server/statuses/fdb5e49aaf92cbc09bc74d0072373d3c749bc7ca","head":{"label":"jacobgardner:master","ref":"master","sha":"fdb5e49aaf92cbc09bc74d0072373d3c749bc7ca","user":{"login":"jacobgardner","id":245622,"avatar_url":"https://avatars.githubusercontent.com/u/245622?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobgardner","html_url":"https://github.com/jacobgardner","followers_url":"https://api.github.com/users/jacobgardner/followers","following_url":"https://api.github.com/users/jacobgardner/following{/other_user}","gists_url":"https://api.github.com/users/jacobgardner/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobgardner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobgardner/subscriptions","organizations_url":"https://api.github.com/users/jacobgardner/orgs","repos_url":"https://api.github.com/users/jacobgardner/repos","events_url":"https://api.github.com/users/jacobgardner/events{/privacy}","received_events_url":"https://api.github.com/users/jacobgardner/received_events","type":"User","site_admin":false},"repo":{"id":64439341,"name":"monopoly-server","full_name":"jacobgardner/monopoly-server","owner":{"login":"jacobgardner","id":245622,"avatar_url":"https://avatars.githubusercontent.com/u/245622?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobgardner","html_url":"https://github.com/jacobgardner","followers_url":"https://api.github.com/users/jacobgardner/followers","following_url":"https://api.github.com/users/jacobgardner/following{/other_user}","gists_url":"https://api.github.com/users/jacobgardner/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobgardner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobgardner/subscriptions","organizations_url":"https://api.github.com/users/jacobgardner/orgs","repos_url":"https://api.github.com/users/jacobgardner/repos","events_url":"https://api.github.com/users/jacobgardner/events{/privacy}","received_events_url":"https://api.github.com/users/jacobgardner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacobgardner/monopoly-server","description":"Jim's Monopoly Server","fork":false,"url":"https://api.github.com/repos/jacobgardner/monopoly-server","forks_url":"https://api.github.com/repos/jacobgardner/monopoly-server/forks","keys_url":"https://api.github.com/repos/jacobgardner/monopoly-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacobgardner/monopoly-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacobgardner/monopoly-server/teams","hooks_url":"https://api.github.com/repos/jacobgardner/monopoly-server/hooks","issue_events_url":"https://api.github.com/repos/jacobgardner/monopoly-server/issues/events{/number}","events_url":"https://api.github.com/repos/jacobgardner/monopoly-server/events","assignees_url":"https://api.github.com/repos/jacobgardner/monopoly-server/assignees{/user}","branches_url":"https://api.github.com/repos/jacobgardner/monopoly-server/branches{/branch}","tags_url":"https://api.github.com/repos/jacobgardner/monopoly-server/tags","blobs_url":"https://api.github.com/repos/jacobgardner/monopoly-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacobgardner/monopoly-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacobgardner/monopoly-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacobgardner/monopoly-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacobgardner/monopoly-server/statuses/{sha}","languages_url":"https://api.github.com/repos/jacobgardner/monopoly-server/languages","stargazers_url":"https://api.github.com/repos/jacobgardner/monopoly-server/stargazers","contributors_url":"https://api.github.com/repos/jacobgardner/monopoly-server/contributors","subscribers_url":"https://api.github.com/repos/jacobgardner/monopoly-server/subscribers","subscription_url":"https://api.github.com/repos/jacobgardner/monopoly-server/subscription","commits_url":"https://api.github.com/repos/jacobgardner/monopoly-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacobgardner/monopoly-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacobgardner/monopoly-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacobgardner/monopoly-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacobgardner/monopoly-server/contents/{+path}","compare_url":"https://api.github.com/repos/jacobgardner/monopoly-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacobgardner/monopoly-server/merges","archive_url":"https://api.github.com/repos/jacobgardner/monopoly-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacobgardner/monopoly-server/downloads","issues_url":"https://api.github.com/repos/jacobgardner/monopoly-server/issues{/number}","pulls_url":"https://api.github.com/repos/jacobgardner/monopoly-server/pulls{/number}","milestones_url":"https://api.github.com/repos/jacobgardner/monopoly-server/milestones{/number}","notifications_url":"https://api.github.com/repos/jacobgardner/monopoly-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacobgardner/monopoly-server/labels{/name}","releases_url":"https://api.github.com/repos/jacobgardner/monopoly-server/releases{/id}","deployments_url":"https://api.github.com/repos/jacobgardner/monopoly-server/deployments","created_at":"2016-07-29T01:13:07Z","updated_at":"2016-07-29T01:41:12Z","pushed_at":"2016-09-22T22:32:06Z","git_url":"git://github.com/jacobgardner/monopoly-server.git","ssh_url":"git@github.com:jacobgardner/monopoly-server.git","clone_url":"https://github.com/jacobgardner/monopoly-server.git","svn_url":"https://github.com/jacobgardner/monopoly-server","homepage":null,"size":47,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jacobgardner:develop","ref":"develop","sha":"3474e7a18088cedb189e219d9d02ad0a78769a3c","user":{"login":"jacobgardner","id":245622,"avatar_url":"https://avatars.githubusercontent.com/u/245622?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobgardner","html_url":"https://github.com/jacobgardner","followers_url":"https://api.github.com/users/jacobgardner/followers","following_url":"https://api.github.com/users/jacobgardner/following{/other_user}","gists_url":"https://api.github.com/users/jacobgardner/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobgardner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobgardner/subscriptions","organizations_url":"https://api.github.com/users/jacobgardner/orgs","repos_url":"https://api.github.com/users/jacobgardner/repos","events_url":"https://api.github.com/users/jacobgardner/events{/privacy}","received_events_url":"https://api.github.com/users/jacobgardner/received_events","type":"User","site_admin":false},"repo":{"id":64439341,"name":"monopoly-server","full_name":"jacobgardner/monopoly-server","owner":{"login":"jacobgardner","id":245622,"avatar_url":"https://avatars.githubusercontent.com/u/245622?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobgardner","html_url":"https://github.com/jacobgardner","followers_url":"https://api.github.com/users/jacobgardner/followers","following_url":"https://api.github.com/users/jacobgardner/following{/other_user}","gists_url":"https://api.github.com/users/jacobgardner/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobgardner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobgardner/subscriptions","organizations_url":"https://api.github.com/users/jacobgardner/orgs","repos_url":"https://api.github.com/users/jacobgardner/repos","events_url":"https://api.github.com/users/jacobgardner/events{/privacy}","received_events_url":"https://api.github.com/users/jacobgardner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacobgardner/monopoly-server","description":"Jim's Monopoly Server","fork":false,"url":"https://api.github.com/repos/jacobgardner/monopoly-server","forks_url":"https://api.github.com/repos/jacobgardner/monopoly-server/forks","keys_url":"https://api.github.com/repos/jacobgardner/monopoly-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacobgardner/monopoly-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacobgardner/monopoly-server/teams","hooks_url":"https://api.github.com/repos/jacobgardner/monopoly-server/hooks","issue_events_url":"https://api.github.com/repos/jacobgardner/monopoly-server/issues/events{/number}","events_url":"https://api.github.com/repos/jacobgardner/monopoly-server/events","assignees_url":"https://api.github.com/repos/jacobgardner/monopoly-server/assignees{/user}","branches_url":"https://api.github.com/repos/jacobgardner/monopoly-server/branches{/branch}","tags_url":"https://api.github.com/repos/jacobgardner/monopoly-server/tags","blobs_url":"https://api.github.com/repos/jacobgardner/monopoly-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacobgardner/monopoly-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacobgardner/monopoly-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacobgardner/monopoly-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacobgardner/monopoly-server/statuses/{sha}","languages_url":"https://api.github.com/repos/jacobgardner/monopoly-server/languages","stargazers_url":"https://api.github.com/repos/jacobgardner/monopoly-server/stargazers","contributors_url":"https://api.github.com/repos/jacobgardner/monopoly-server/contributors","subscribers_url":"https://api.github.com/repos/jacobgardner/monopoly-server/subscribers","subscription_url":"https://api.github.com/repos/jacobgardner/monopoly-server/subscription","commits_url":"https://api.github.com/repos/jacobgardner/monopoly-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacobgardner/monopoly-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacobgardner/monopoly-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacobgardner/monopoly-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacobgardner/monopoly-server/contents/{+path}","compare_url":"https://api.github.com/repos/jacobgardner/monopoly-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacobgardner/monopoly-server/merges","archive_url":"https://api.github.com/repos/jacobgardner/monopoly-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacobgardner/monopoly-server/downloads","issues_url":"https://api.github.com/repos/jacobgardner/monopoly-server/issues{/number}","pulls_url":"https://api.github.com/repos/jacobgardner/monopoly-server/pulls{/number}","milestones_url":"https://api.github.com/repos/jacobgardner/monopoly-server/milestones{/number}","notifications_url":"https://api.github.com/repos/jacobgardner/monopoly-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacobgardner/monopoly-server/labels{/name}","releases_url":"https://api.github.com/repos/jacobgardner/monopoly-server/releases{/id}","deployments_url":"https://api.github.com/repos/jacobgardner/monopoly-server/deployments","created_at":"2016-07-29T01:13:07Z","updated_at":"2016-07-29T01:41:12Z","pushed_at":"2016-09-22T22:32:06Z","git_url":"git://github.com/jacobgardner/monopoly-server.git","ssh_url":"git@github.com:jacobgardner/monopoly-server.git","clone_url":"https://github.com/jacobgardner/monopoly-server.git","svn_url":"https://github.com/jacobgardner/monopoly-server","homepage":null,"size":47,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jacobgardner/monopoly-server/pulls/3"},"html":{"href":"https://github.com/jacobgardner/monopoly-server/pull/3"},"issue":{"href":"https://api.github.com/repos/jacobgardner/monopoly-server/issues/3"},"comments":{"href":"https://api.github.com/repos/jacobgardner/monopoly-server/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/jacobgardner/monopoly-server/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/jacobgardner/monopoly-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jacobgardner/monopoly-server/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/jacobgardner/monopoly-server/statuses/fdb5e49aaf92cbc09bc74d0072373d3c749bc7ca"}}}}
{"actor":{"display_login":"jacobgardner"}}