{"action":"created","comment":{"url":"https://api.github.com/repos/marcgrr/tta/pulls/comments/27944370","id":27944370,"diff_hunk":"@@ -0,0 +1,47 @@\n+package models\n+\n+import play.api.libs.json.Format\n+import play.api.libs.json.JsSuccess\n+import play.api.libs.json.JsString\n+import play.api.libs.json.Reads\n+import play.api.libs.json.Writes\n+\n+trait Tech extends Card {\n+  def costToResearch: Int\n+\n+  private def canResearch(gameState: GameState): Boolean = {\n+    gameState.activePlayerState.science >= this.costToResearch &&\n+      !gameState.activePlayerState.techs.contains(this)\n+  }\n+\n+  def generateResearchedDerivedPlayerState(gameState: GameState): DerivedPlayerState\n+\n+  override def generatePlayActionDerivedPlayerState(gameState:GameState): DerivedPlayerState = {\n+    def tech = this","path":"tta-server/app/models/Tech.scala","position":20,"original_position":20,"commit_id":"f9ba2b79a8045163179e9b68ce757cd21219c357","original_commit_id":"f9ba2b79a8045163179e9b68ce757cd21219c357","user":{"login":"marcgrr","id":3209204,"avatar_url":"https://avatars.githubusercontent.com/u/3209204?v=3","gravatar_id":"","url":"https://api.github.com/users/marcgrr","html_url":"https://github.com/marcgrr","followers_url":"https://api.github.com/users/marcgrr/followers","following_url":"https://api.github.com/users/marcgrr/following{/other_user}","gists_url":"https://api.github.com/users/marcgrr/gists{/gist_id}","starred_url":"https://api.github.com/users/marcgrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcgrr/subscriptions","organizations_url":"https://api.github.com/users/marcgrr/orgs","repos_url":"https://api.github.com/users/marcgrr/repos","events_url":"https://api.github.com/users/marcgrr/events{/privacy}","received_events_url":"https://api.github.com/users/marcgrr/received_events","type":"User","site_admin":false},"body":"val","created_at":"2015-04-08T05:44:22Z","updated_at":"2015-04-08T05:44:22Z","html_url":"https://github.com/marcgrr/tta/pull/1#discussion_r27944370","pull_request_url":"https://api.github.com/repos/marcgrr/tta/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/marcgrr/tta/pulls/comments/27944370"},"html":{"href":"https://github.com/marcgrr/tta/pull/1#discussion_r27944370"},"pull_request":{"href":"https://api.github.com/repos/marcgrr/tta/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/marcgrr/tta/pulls/1","id":32643639,"html_url":"https://github.com/marcgrr/tta/pull/1","diff_url":"https://github.com/marcgrr/tta/pull/1.diff","patch_url":"https://github.com/marcgrr/tta/pull/1.patch","issue_url":"https://api.github.com/repos/marcgrr/tta/issues/1","number":1,"state":"open","locked":false,"title":"Refactored buildings","user":{"login":"kohpangwei","id":1113199,"avatar_url":"https://avatars.githubusercontent.com/u/1113199?v=3","gravatar_id":"","url":"https://api.github.com/users/kohpangwei","html_url":"https://github.com/kohpangwei","followers_url":"https://api.github.com/users/kohpangwei/followers","following_url":"https://api.github.com/users/kohpangwei/following{/other_user}","gists_url":"https://api.github.com/users/kohpangwei/gists{/gist_id}","starred_url":"https://api.github.com/users/kohpangwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohpangwei/subscriptions","organizations_url":"https://api.github.com/users/kohpangwei/orgs","repos_url":"https://api.github.com/users/kohpangwei/repos","events_url":"https://api.github.com/users/kohpangwei/events{/privacy}","received_events_url":"https://api.github.com/users/kohpangwei/received_events","type":"User","site_admin":false},"body":"Prettified action names and refactored action routes to support that\r\nAdded food, foodPerTurn\r\nAdded Iron, Agriculture\r\n\r\n@marcgrr @z-chen @katfishi PTAL","created_at":"2015-04-05T03:43:57Z","updated_at":"2015-04-08T05:44:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8fc7ce5393bc5742d8d891c722b5f83febac7ad1","assignee":{"login":"marcgrr","id":3209204,"avatar_url":"https://avatars.githubusercontent.com/u/3209204?v=3","gravatar_id":"","url":"https://api.github.com/users/marcgrr","html_url":"https://github.com/marcgrr","followers_url":"https://api.github.com/users/marcgrr/followers","following_url":"https://api.github.com/users/marcgrr/following{/other_user}","gists_url":"https://api.github.com/users/marcgrr/gists{/gist_id}","starred_url":"https://api.github.com/users/marcgrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcgrr/subscriptions","organizations_url":"https://api.github.com/users/marcgrr/orgs","repos_url":"https://api.github.com/users/marcgrr/repos","events_url":"https://api.github.com/users/marcgrr/events{/privacy}","received_events_url":"https://api.github.com/users/marcgrr/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/marcgrr/tta/pulls/1/commits","review_comments_url":"https://api.github.com/repos/marcgrr/tta/pulls/1/comments","review_comment_url":"https://api.github.com/repos/marcgrr/tta/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marcgrr/tta/issues/1/comments","statuses_url":"https://api.github.com/repos/marcgrr/tta/statuses/f9ba2b79a8045163179e9b68ce757cd21219c357","head":{"label":"marcgrr:pw-buildingrefactor","ref":"pw-buildingrefactor","sha":"f9ba2b79a8045163179e9b68ce757cd21219c357","user":{"login":"marcgrr","id":3209204,"avatar_url":"https://avatars.githubusercontent.com/u/3209204?v=3","gravatar_id":"","url":"https://api.github.com/users/marcgrr","html_url":"https://github.com/marcgrr","followers_url":"https://api.github.com/users/marcgrr/followers","following_url":"https://api.github.com/users/marcgrr/following{/other_user}","gists_url":"https://api.github.com/users/marcgrr/gists{/gist_id}","starred_url":"https://api.github.com/users/marcgrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcgrr/subscriptions","organizations_url":"https://api.github.com/users/marcgrr/orgs","repos_url":"https://api.github.com/users/marcgrr/repos","events_url":"https://api.github.com/users/marcgrr/events{/privacy}","received_events_url":"https://api.github.com/users/marcgrr/received_events","type":"User","site_admin":false},"repo":{"id":33220431,"name":"tta","full_name":"marcgrr/tta","owner":{"login":"marcgrr","id":3209204,"avatar_url":"https://avatars.githubusercontent.com/u/3209204?v=3","gravatar_id":"","url":"https://api.github.com/users/marcgrr","html_url":"https://github.com/marcgrr","followers_url":"https://api.github.com/users/marcgrr/followers","following_url":"https://api.github.com/users/marcgrr/following{/other_user}","gists_url":"https://api.github.com/users/marcgrr/gists{/gist_id}","starred_url":"https://api.github.com/users/marcgrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcgrr/subscriptions","organizations_url":"https://api.github.com/users/marcgrr/orgs","repos_url":"https://api.github.com/users/marcgrr/repos","events_url":"https://api.github.com/users/marcgrr/events{/privacy}","received_events_url":"https://api.github.com/users/marcgrr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcgrr/tta","description":"TTA","fork":false,"url":"https://api.github.com/repos/marcgrr/tta","forks_url":"https://api.github.com/repos/marcgrr/tta/forks","keys_url":"https://api.github.com/repos/marcgrr/tta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcgrr/tta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcgrr/tta/teams","hooks_url":"https://api.github.com/repos/marcgrr/tta/hooks","issue_events_url":"https://api.github.com/repos/marcgrr/tta/issues/events{/number}","events_url":"https://api.github.com/repos/marcgrr/tta/events","assignees_url":"https://api.github.com/repos/marcgrr/tta/assignees{/user}","branches_url":"https://api.github.com/repos/marcgrr/tta/branches{/branch}","tags_url":"https://api.github.com/repos/marcgrr/tta/tags","blobs_url":"https://api.github.com/repos/marcgrr/tta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcgrr/tta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcgrr/tta/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcgrr/tta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcgrr/tta/statuses/{sha}","languages_url":"https://api.github.com/repos/marcgrr/tta/languages","stargazers_url":"https://api.github.com/repos/marcgrr/tta/stargazers","contributors_url":"https://api.github.com/repos/marcgrr/tta/contributors","subscribers_url":"https://api.github.com/repos/marcgrr/tta/subscribers","subscription_url":"https://api.github.com/repos/marcgrr/tta/subscription","commits_url":"https://api.github.com/repos/marcgrr/tta/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcgrr/tta/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcgrr/tta/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcgrr/tta/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcgrr/tta/contents/{+path}","compare_url":"https://api.github.com/repos/marcgrr/tta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcgrr/tta/merges","archive_url":"https://api.github.com/repos/marcgrr/tta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcgrr/tta/downloads","issues_url":"https://api.github.com/repos/marcgrr/tta/issues{/number}","pulls_url":"https://api.github.com/repos/marcgrr/tta/pulls{/number}","milestones_url":"https://api.github.com/repos/marcgrr/tta/milestones{/number}","notifications_url":"https://api.github.com/repos/marcgrr/tta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcgrr/tta/labels{/name}","releases_url":"https://api.github.com/repos/marcgrr/tta/releases{/id}","created_at":"2015-04-01T01:48:49Z","updated_at":"2015-04-05T03:43:00Z","pushed_at":"2015-04-08T05:29:28Z","git_url":"git://github.com/marcgrr/tta.git","ssh_url":"git@github.com:marcgrr/tta.git","clone_url":"https://github.com/marcgrr/tta.git","svn_url":"https://github.com/marcgrr/tta","homepage":null,"size":204,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"marcgrr:master","ref":"master","sha":"fac3d0ce80cadf8232bca0cb5813eedd4325590b","user":{"login":"marcgrr","id":3209204,"avatar_url":"https://avatars.githubusercontent.com/u/3209204?v=3","gravatar_id":"","url":"https://api.github.com/users/marcgrr","html_url":"https://github.com/marcgrr","followers_url":"https://api.github.com/users/marcgrr/followers","following_url":"https://api.github.com/users/marcgrr/following{/other_user}","gists_url":"https://api.github.com/users/marcgrr/gists{/gist_id}","starred_url":"https://api.github.com/users/marcgrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcgrr/subscriptions","organizations_url":"https://api.github.com/users/marcgrr/orgs","repos_url":"https://api.github.com/users/marcgrr/repos","events_url":"https://api.github.com/users/marcgrr/events{/privacy}","received_events_url":"https://api.github.com/users/marcgrr/received_events","type":"User","site_admin":false},"repo":{"id":33220431,"name":"tta","full_name":"marcgrr/tta","owner":{"login":"marcgrr","id":3209204,"avatar_url":"https://avatars.githubusercontent.com/u/3209204?v=3","gravatar_id":"","url":"https://api.github.com/users/marcgrr","html_url":"https://github.com/marcgrr","followers_url":"https://api.github.com/users/marcgrr/followers","following_url":"https://api.github.com/users/marcgrr/following{/other_user}","gists_url":"https://api.github.com/users/marcgrr/gists{/gist_id}","starred_url":"https://api.github.com/users/marcgrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcgrr/subscriptions","organizations_url":"https://api.github.com/users/marcgrr/orgs","repos_url":"https://api.github.com/users/marcgrr/repos","events_url":"https://api.github.com/users/marcgrr/events{/privacy}","received_events_url":"https://api.github.com/users/marcgrr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcgrr/tta","description":"TTA","fork":false,"url":"https://api.github.com/repos/marcgrr/tta","forks_url":"https://api.github.com/repos/marcgrr/tta/forks","keys_url":"https://api.github.com/repos/marcgrr/tta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcgrr/tta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcgrr/tta/teams","hooks_url":"https://api.github.com/repos/marcgrr/tta/hooks","issue_events_url":"https://api.github.com/repos/marcgrr/tta/issues/events{/number}","events_url":"https://api.github.com/repos/marcgrr/tta/events","assignees_url":"https://api.github.com/repos/marcgrr/tta/assignees{/user}","branches_url":"https://api.github.com/repos/marcgrr/tta/branches{/branch}","tags_url":"https://api.github.com/repos/marcgrr/tta/tags","blobs_url":"https://api.github.com/repos/marcgrr/tta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcgrr/tta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcgrr/tta/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcgrr/tta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcgrr/tta/statuses/{sha}","languages_url":"https://api.github.com/repos/marcgrr/tta/languages","stargazers_url":"https://api.github.com/repos/marcgrr/tta/stargazers","contributors_url":"https://api.github.com/repos/marcgrr/tta/contributors","subscribers_url":"https://api.github.com/repos/marcgrr/tta/subscribers","subscription_url":"https://api.github.com/repos/marcgrr/tta/subscription","commits_url":"https://api.github.com/repos/marcgrr/tta/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcgrr/tta/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcgrr/tta/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcgrr/tta/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcgrr/tta/contents/{+path}","compare_url":"https://api.github.com/repos/marcgrr/tta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcgrr/tta/merges","archive_url":"https://api.github.com/repos/marcgrr/tta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcgrr/tta/downloads","issues_url":"https://api.github.com/repos/marcgrr/tta/issues{/number}","pulls_url":"https://api.github.com/repos/marcgrr/tta/pulls{/number}","milestones_url":"https://api.github.com/repos/marcgrr/tta/milestones{/number}","notifications_url":"https://api.github.com/repos/marcgrr/tta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcgrr/tta/labels{/name}","releases_url":"https://api.github.com/repos/marcgrr/tta/releases{/id}","created_at":"2015-04-01T01:48:49Z","updated_at":"2015-04-05T03:43:00Z","pushed_at":"2015-04-08T05:29:28Z","git_url":"git://github.com/marcgrr/tta.git","ssh_url":"git@github.com:marcgrr/tta.git","clone_url":"https://github.com/marcgrr/tta.git","svn_url":"https://github.com/marcgrr/tta","homepage":null,"size":204,"stargazers_count":0,"watchers_count":0,"language":"Scala","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/marcgrr/tta/pulls/1"},"html":{"href":"https://github.com/marcgrr/tta/pull/1"},"issue":{"href":"https://api.github.com/repos/marcgrr/tta/issues/1"},"comments":{"href":"https://api.github.com/repos/marcgrr/tta/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/marcgrr/tta/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/marcgrr/tta/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marcgrr/tta/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/marcgrr/tta/statuses/f9ba2b79a8045163179e9b68ce757cd21219c357"}}}}