{"action":"created","comment":{"url":"https://api.github.com/repos/lacker/cardkit/pulls/comments/36830249","id":36830249,"diff_hunk":"@@ -60,20 +61,37 @@ class Client {\n   }\n \n   // Send a looking-for-game message.\n-  register() {\n+  register(hasComputerOpponent) {\n     this.registered = true; // UI checks this to refresh on game seek\n     console.log(\"registering as \" + this.name)\n     if (this.game) {\n-      this.send({op: \"register\", name: this.name, seeking: !this.game.started()})\n+      this.send({op: \"register\", name: this.name, seeking: !this.game.started(), hasComputerOpponent:hasComputerOpponent})","path":"js/client.js","position":31,"original_position":31,"commit_id":"da0caf8ded141b473b008c7fd91a6af4faf91a22","original_commit_id":"da0caf8ded141b473b008c7fd91a6af4faf91a22","user":{"login":"andrewljohnson","id":455551,"avatar_url":"https://avatars.githubusercontent.com/u/455551?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewljohnson","html_url":"https://github.com/andrewljohnson","followers_url":"https://api.github.com/users/andrewljohnson/followers","following_url":"https://api.github.com/users/andrewljohnson/following{/other_user}","gists_url":"https://api.github.com/users/andrewljohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewljohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewljohnson/subscriptions","organizations_url":"https://api.github.com/users/andrewljohnson/orgs","repos_url":"https://api.github.com/users/andrewljohnson/repos","events_url":"https://api.github.com/users/andrewljohnson/events{/privacy}","received_events_url":"https://api.github.com/users/andrewljohnson/received_events","type":"User","site_admin":false},"body":":checkmark:","created_at":"2015-08-12T06:37:18Z","updated_at":"2015-08-12T06:37:18Z","html_url":"https://github.com/lacker/cardkit/pull/62#discussion_r36830249","pull_request_url":"https://api.github.com/repos/lacker/cardkit/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/lacker/cardkit/pulls/comments/36830249"},"html":{"href":"https://github.com/lacker/cardkit/pull/62#discussion_r36830249"},"pull_request":{"href":"https://api.github.com/repos/lacker/cardkit/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/lacker/cardkit/pulls/62","id":42203338,"html_url":"https://github.com/lacker/cardkit/pull/62","diff_url":"https://github.com/lacker/cardkit/pull/62.diff","patch_url":"https://github.com/lacker/cardkit/pull/62.patch","issue_url":"https://api.github.com/repos/lacker/cardkit/issues/62","number":62,"state":"open","locked":false,"title":"Develop andrew","user":{"login":"andrewljohnson","id":455551,"avatar_url":"https://avatars.githubusercontent.com/u/455551?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewljohnson","html_url":"https://github.com/andrewljohnson","followers_url":"https://api.github.com/users/andrewljohnson/followers","following_url":"https://api.github.com/users/andrewljohnson/following{/other_user}","gists_url":"https://api.github.com/users/andrewljohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewljohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewljohnson/subscriptions","organizations_url":"https://api.github.com/users/andrewljohnson/orgs","repos_url":"https://api.github.com/users/andrewljohnson/repos","events_url":"https://api.github.com/users/andrewljohnson/events{/privacy}","received_events_url":"https://api.github.com/users/andrewljohnson/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-12T04:26:30Z","updated_at":"2015-08-12T06:37:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45c682aa0eeb1c12dce5fe16fdcac4ccc326b1b9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lacker/cardkit/pulls/62/commits","review_comments_url":"https://api.github.com/repos/lacker/cardkit/pulls/62/comments","review_comment_url":"https://api.github.com/repos/lacker/cardkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lacker/cardkit/issues/62/comments","statuses_url":"https://api.github.com/repos/lacker/cardkit/statuses/da0caf8ded141b473b008c7fd91a6af4faf91a22","head":{"label":"lacker:develop-andrew","ref":"develop-andrew","sha":"da0caf8ded141b473b008c7fd91a6af4faf91a22","user":{"login":"lacker","id":106475,"avatar_url":"https://avatars.githubusercontent.com/u/106475?v=3","gravatar_id":"","url":"https://api.github.com/users/lacker","html_url":"https://github.com/lacker","followers_url":"https://api.github.com/users/lacker/followers","following_url":"https://api.github.com/users/lacker/following{/other_user}","gists_url":"https://api.github.com/users/lacker/gists{/gist_id}","starred_url":"https://api.github.com/users/lacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacker/subscriptions","organizations_url":"https://api.github.com/users/lacker/orgs","repos_url":"https://api.github.com/users/lacker/repos","events_url":"https://api.github.com/users/lacker/events{/privacy}","received_events_url":"https://api.github.com/users/lacker/received_events","type":"User","site_admin":false},"repo":{"id":37109729,"name":"cardkit","full_name":"lacker/cardkit","owner":{"login":"lacker","id":106475,"avatar_url":"https://avatars.githubusercontent.com/u/106475?v=3","gravatar_id":"","url":"https://api.github.com/users/lacker","html_url":"https://github.com/lacker","followers_url":"https://api.github.com/users/lacker/followers","following_url":"https://api.github.com/users/lacker/following{/other_user}","gists_url":"https://api.github.com/users/lacker/gists{/gist_id}","starred_url":"https://api.github.com/users/lacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacker/subscriptions","organizations_url":"https://api.github.com/users/lacker/orgs","repos_url":"https://api.github.com/users/lacker/repos","events_url":"https://api.github.com/users/lacker/events{/privacy}","received_events_url":"https://api.github.com/users/lacker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lacker/cardkit","description":"A bunch of tools for building card games.","fork":false,"url":"https://api.github.com/repos/lacker/cardkit","forks_url":"https://api.github.com/repos/lacker/cardkit/forks","keys_url":"https://api.github.com/repos/lacker/cardkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lacker/cardkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lacker/cardkit/teams","hooks_url":"https://api.github.com/repos/lacker/cardkit/hooks","issue_events_url":"https://api.github.com/repos/lacker/cardkit/issues/events{/number}","events_url":"https://api.github.com/repos/lacker/cardkit/events","assignees_url":"https://api.github.com/repos/lacker/cardkit/assignees{/user}","branches_url":"https://api.github.com/repos/lacker/cardkit/branches{/branch}","tags_url":"https://api.github.com/repos/lacker/cardkit/tags","blobs_url":"https://api.github.com/repos/lacker/cardkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lacker/cardkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lacker/cardkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/lacker/cardkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lacker/cardkit/statuses/{sha}","languages_url":"https://api.github.com/repos/lacker/cardkit/languages","stargazers_url":"https://api.github.com/repos/lacker/cardkit/stargazers","contributors_url":"https://api.github.com/repos/lacker/cardkit/contributors","subscribers_url":"https://api.github.com/repos/lacker/cardkit/subscribers","subscription_url":"https://api.github.com/repos/lacker/cardkit/subscription","commits_url":"https://api.github.com/repos/lacker/cardkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/lacker/cardkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/lacker/cardkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/lacker/cardkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/lacker/cardkit/contents/{+path}","compare_url":"https://api.github.com/repos/lacker/cardkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lacker/cardkit/merges","archive_url":"https://api.github.com/repos/lacker/cardkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lacker/cardkit/downloads","issues_url":"https://api.github.com/repos/lacker/cardkit/issues{/number}","pulls_url":"https://api.github.com/repos/lacker/cardkit/pulls{/number}","milestones_url":"https://api.github.com/repos/lacker/cardkit/milestones{/number}","notifications_url":"https://api.github.com/repos/lacker/cardkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lacker/cardkit/labels{/name}","releases_url":"https://api.github.com/repos/lacker/cardkit/releases{/id}","created_at":"2015-06-09T04:15:15Z","updated_at":"2015-07-15T17:30:56Z","pushed_at":"2015-08-12T04:35:09Z","git_url":"git://github.com/lacker/cardkit.git","ssh_url":"git@github.com:lacker/cardkit.git","clone_url":"https://github.com/lacker/cardkit.git","svn_url":"https://github.com/lacker/cardkit","homepage":null,"size":1957,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":4,"default_branch":"master"}},"base":{"label":"lacker:master","ref":"master","sha":"05bb57b5e176fb5b2f8b4054969ae26ec094b466","user":{"login":"lacker","id":106475,"avatar_url":"https://avatars.githubusercontent.com/u/106475?v=3","gravatar_id":"","url":"https://api.github.com/users/lacker","html_url":"https://github.com/lacker","followers_url":"https://api.github.com/users/lacker/followers","following_url":"https://api.github.com/users/lacker/following{/other_user}","gists_url":"https://api.github.com/users/lacker/gists{/gist_id}","starred_url":"https://api.github.com/users/lacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacker/subscriptions","organizations_url":"https://api.github.com/users/lacker/orgs","repos_url":"https://api.github.com/users/lacker/repos","events_url":"https://api.github.com/users/lacker/events{/privacy}","received_events_url":"https://api.github.com/users/lacker/received_events","type":"User","site_admin":false},"repo":{"id":37109729,"name":"cardkit","full_name":"lacker/cardkit","owner":{"login":"lacker","id":106475,"avatar_url":"https://avatars.githubusercontent.com/u/106475?v=3","gravatar_id":"","url":"https://api.github.com/users/lacker","html_url":"https://github.com/lacker","followers_url":"https://api.github.com/users/lacker/followers","following_url":"https://api.github.com/users/lacker/following{/other_user}","gists_url":"https://api.github.com/users/lacker/gists{/gist_id}","starred_url":"https://api.github.com/users/lacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacker/subscriptions","organizations_url":"https://api.github.com/users/lacker/orgs","repos_url":"https://api.github.com/users/lacker/repos","events_url":"https://api.github.com/users/lacker/events{/privacy}","received_events_url":"https://api.github.com/users/lacker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lacker/cardkit","description":"A bunch of tools for building card games.","fork":false,"url":"https://api.github.com/repos/lacker/cardkit","forks_url":"https://api.github.com/repos/lacker/cardkit/forks","keys_url":"https://api.github.com/repos/lacker/cardkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lacker/cardkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lacker/cardkit/teams","hooks_url":"https://api.github.com/repos/lacker/cardkit/hooks","issue_events_url":"https://api.github.com/repos/lacker/cardkit/issues/events{/number}","events_url":"https://api.github.com/repos/lacker/cardkit/events","assignees_url":"https://api.github.com/repos/lacker/cardkit/assignees{/user}","branches_url":"https://api.github.com/repos/lacker/cardkit/branches{/branch}","tags_url":"https://api.github.com/repos/lacker/cardkit/tags","blobs_url":"https://api.github.com/repos/lacker/cardkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lacker/cardkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lacker/cardkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/lacker/cardkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lacker/cardkit/statuses/{sha}","languages_url":"https://api.github.com/repos/lacker/cardkit/languages","stargazers_url":"https://api.github.com/repos/lacker/cardkit/stargazers","contributors_url":"https://api.github.com/repos/lacker/cardkit/contributors","subscribers_url":"https://api.github.com/repos/lacker/cardkit/subscribers","subscription_url":"https://api.github.com/repos/lacker/cardkit/subscription","commits_url":"https://api.github.com/repos/lacker/cardkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/lacker/cardkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/lacker/cardkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/lacker/cardkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/lacker/cardkit/contents/{+path}","compare_url":"https://api.github.com/repos/lacker/cardkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lacker/cardkit/merges","archive_url":"https://api.github.com/repos/lacker/cardkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lacker/cardkit/downloads","issues_url":"https://api.github.com/repos/lacker/cardkit/issues{/number}","pulls_url":"https://api.github.com/repos/lacker/cardkit/pulls{/number}","milestones_url":"https://api.github.com/repos/lacker/cardkit/milestones{/number}","notifications_url":"https://api.github.com/repos/lacker/cardkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lacker/cardkit/labels{/name}","releases_url":"https://api.github.com/repos/lacker/cardkit/releases{/id}","created_at":"2015-06-09T04:15:15Z","updated_at":"2015-07-15T17:30:56Z","pushed_at":"2015-08-12T04:35:09Z","git_url":"git://github.com/lacker/cardkit.git","ssh_url":"git@github.com:lacker/cardkit.git","clone_url":"https://github.com/lacker/cardkit.git","svn_url":"https://github.com/lacker/cardkit","homepage":null,"size":1957,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lacker/cardkit/pulls/62"},"html":{"href":"https://github.com/lacker/cardkit/pull/62"},"issue":{"href":"https://api.github.com/repos/lacker/cardkit/issues/62"},"comments":{"href":"https://api.github.com/repos/lacker/cardkit/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/lacker/cardkit/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/lacker/cardkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lacker/cardkit/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/lacker/cardkit/statuses/da0caf8ded141b473b008c7fd91a6af4faf91a22"}}}}