{"action":"created","comment":{"url":"https://api.github.com/repos/ujh/iomrascalai/pulls/comments/29180075","id":29180075,"diff_hunk":"@@ -146,21 +146,38 @@ impl Node {\n                 .iter()\n                 .map(|&m| Node::new(m, self.config))\n                 .collect();\n+            if self.children.len() <= (game.size() * game.size() / 10) as usize {\n+                let player = game.last_move().color().opposite();\n+                if game.winner() == player || !self.config.uct.playout_aftermath { //don't pass if we're losing on the board","path":"src/engine/uct/node/mod.rs","position":6,"original_position":6,"commit_id":"bfa03b4e865f38c0aa7d82ca92869a2a7d40a188","original_commit_id":"bfa03b4e865f38c0aa7d82ca92869a2a7d40a188","user":{"login":"iopq","id":1817528,"avatar_url":"https://avatars.githubusercontent.com/u/1817528?v=3","gravatar_id":"","url":"https://api.github.com/users/iopq","html_url":"https://github.com/iopq","followers_url":"https://api.github.com/users/iopq/followers","following_url":"https://api.github.com/users/iopq/following{/other_user}","gists_url":"https://api.github.com/users/iopq/gists{/gist_id}","starred_url":"https://api.github.com/users/iopq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iopq/subscriptions","organizations_url":"https://api.github.com/users/iopq/orgs","repos_url":"https://api.github.com/users/iopq/repos","events_url":"https://api.github.com/users/iopq/events{/privacy}","received_events_url":"https://api.github.com/users/iopq/received_events","type":"User","site_admin":false},"body":"I already don't add it if `playout_aftermath` is `true`","created_at":"2015-04-27T19:12:20Z","updated_at":"2015-04-27T19:12:20Z","html_url":"https://github.com/ujh/iomrascalai/pull/158#discussion_r29180075","pull_request_url":"https://api.github.com/repos/ujh/iomrascalai/pulls/158","_links":{"self":{"href":"https://api.github.com/repos/ujh/iomrascalai/pulls/comments/29180075"},"html":{"href":"https://github.com/ujh/iomrascalai/pull/158#discussion_r29180075"},"pull_request":{"href":"https://api.github.com/repos/ujh/iomrascalai/pulls/158"}}},"pull_request":{"url":"https://api.github.com/repos/ujh/iomrascalai/pulls/158","id":34132454,"html_url":"https://github.com/ujh/iomrascalai/pull/158","diff_url":"https://github.com/ujh/iomrascalai/pull/158.diff","patch_url":"https://github.com/ujh/iomrascalai/pull/158.patch","issue_url":"https://api.github.com/repos/ujh/iomrascalai/issues/158","number":158,"state":"open","locked":false,"title":"Add pass to the game tree to correctly detect zugzwang situations","user":{"login":"iopq","id":1817528,"avatar_url":"https://avatars.githubusercontent.com/u/1817528?v=3","gravatar_id":"","url":"https://api.github.com/users/iopq","html_url":"https://github.com/iopq","followers_url":"https://api.github.com/users/iopq/followers","following_url":"https://api.github.com/users/iopq/following{/other_user}","gists_url":"https://api.github.com/users/iopq/gists{/gist_id}","starred_url":"https://api.github.com/users/iopq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iopq/subscriptions","organizations_url":"https://api.github.com/users/iopq/orgs","repos_url":"https://api.github.com/users/iopq/repos","events_url":"https://api.github.com/users/iopq/events{/privacy}","received_events_url":"https://api.github.com/users/iopq/received_events","type":"User","site_admin":false},"body":"Usually this only concerns ten thousand year ko, because that's the only case where it makes sense to play out all of your legal moves first (you don't want to start the ko because you'll lose). By adding it to the game tree I allow the engine to pass as the root and allow the grandchild to be a pass as well (in the case that we pass, opponent starts the ko, we should pass again in the grandchild, opponent will atari, we should take ko)\r\n\r\nI allow 10% of the board to be legal moves, but it's kind of an arbitrary number (at this point the game is decided 99% of the time)","created_at":"2015-04-26T23:47:46Z","updated_at":"2015-04-27T19:12:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2bfa2d6795322b43693af79c31f13362d7cac68f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ujh/iomrascalai/pulls/158/commits","review_comments_url":"https://api.github.com/repos/ujh/iomrascalai/pulls/158/comments","review_comment_url":"https://api.github.com/repos/ujh/iomrascalai/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ujh/iomrascalai/issues/158/comments","statuses_url":"https://api.github.com/repos/ujh/iomrascalai/statuses/bfa03b4e865f38c0aa7d82ca92869a2a7d40a188","head":{"label":"iopq:mannenko","ref":"mannenko","sha":"bfa03b4e865f38c0aa7d82ca92869a2a7d40a188","user":{"login":"iopq","id":1817528,"avatar_url":"https://avatars.githubusercontent.com/u/1817528?v=3","gravatar_id":"","url":"https://api.github.com/users/iopq","html_url":"https://github.com/iopq","followers_url":"https://api.github.com/users/iopq/followers","following_url":"https://api.github.com/users/iopq/following{/other_user}","gists_url":"https://api.github.com/users/iopq/gists{/gist_id}","starred_url":"https://api.github.com/users/iopq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iopq/subscriptions","organizations_url":"https://api.github.com/users/iopq/orgs","repos_url":"https://api.github.com/users/iopq/repos","events_url":"https://api.github.com/users/iopq/events{/privacy}","received_events_url":"https://api.github.com/users/iopq/received_events","type":"User","site_admin":false},"repo":{"id":31869079,"name":"iomrascalai","full_name":"iopq/iomrascalai","owner":{"login":"iopq","id":1817528,"avatar_url":"https://avatars.githubusercontent.com/u/1817528?v=3","gravatar_id":"","url":"https://api.github.com/users/iopq","html_url":"https://github.com/iopq","followers_url":"https://api.github.com/users/iopq/followers","following_url":"https://api.github.com/users/iopq/following{/other_user}","gists_url":"https://api.github.com/users/iopq/gists{/gist_id}","starred_url":"https://api.github.com/users/iopq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iopq/subscriptions","organizations_url":"https://api.github.com/users/iopq/orgs","repos_url":"https://api.github.com/users/iopq/repos","events_url":"https://api.github.com/users/iopq/events{/privacy}","received_events_url":"https://api.github.com/users/iopq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iopq/iomrascalai","description":"iomrascálaí is an AI for the game of Go/Weiqi/Baduk written in Rust","fork":true,"url":"https://api.github.com/repos/iopq/iomrascalai","forks_url":"https://api.github.com/repos/iopq/iomrascalai/forks","keys_url":"https://api.github.com/repos/iopq/iomrascalai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iopq/iomrascalai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iopq/iomrascalai/teams","hooks_url":"https://api.github.com/repos/iopq/iomrascalai/hooks","issue_events_url":"https://api.github.com/repos/iopq/iomrascalai/issues/events{/number}","events_url":"https://api.github.com/repos/iopq/iomrascalai/events","assignees_url":"https://api.github.com/repos/iopq/iomrascalai/assignees{/user}","branches_url":"https://api.github.com/repos/iopq/iomrascalai/branches{/branch}","tags_url":"https://api.github.com/repos/iopq/iomrascalai/tags","blobs_url":"https://api.github.com/repos/iopq/iomrascalai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iopq/iomrascalai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iopq/iomrascalai/git/refs{/sha}","trees_url":"https://api.github.com/repos/iopq/iomrascalai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iopq/iomrascalai/statuses/{sha}","languages_url":"https://api.github.com/repos/iopq/iomrascalai/languages","stargazers_url":"https://api.github.com/repos/iopq/iomrascalai/stargazers","contributors_url":"https://api.github.com/repos/iopq/iomrascalai/contributors","subscribers_url":"https://api.github.com/repos/iopq/iomrascalai/subscribers","subscription_url":"https://api.github.com/repos/iopq/iomrascalai/subscription","commits_url":"https://api.github.com/repos/iopq/iomrascalai/commits{/sha}","git_commits_url":"https://api.github.com/repos/iopq/iomrascalai/git/commits{/sha}","comments_url":"https://api.github.com/repos/iopq/iomrascalai/comments{/number}","issue_comment_url":"https://api.github.com/repos/iopq/iomrascalai/issues/comments{/number}","contents_url":"https://api.github.com/repos/iopq/iomrascalai/contents/{+path}","compare_url":"https://api.github.com/repos/iopq/iomrascalai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iopq/iomrascalai/merges","archive_url":"https://api.github.com/repos/iopq/iomrascalai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iopq/iomrascalai/downloads","issues_url":"https://api.github.com/repos/iopq/iomrascalai/issues{/number}","pulls_url":"https://api.github.com/repos/iopq/iomrascalai/pulls{/number}","milestones_url":"https://api.github.com/repos/iopq/iomrascalai/milestones{/number}","notifications_url":"https://api.github.com/repos/iopq/iomrascalai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iopq/iomrascalai/labels{/name}","releases_url":"https://api.github.com/repos/iopq/iomrascalai/releases{/id}","created_at":"2015-03-08T22:53:14Z","updated_at":"2015-04-24T06:22:55Z","pushed_at":"2015-04-27T18:36:56Z","git_url":"git://github.com/iopq/iomrascalai.git","ssh_url":"git@github.com:iopq/iomrascalai.git","clone_url":"https://github.com/iopq/iomrascalai.git","svn_url":"https://github.com/iopq/iomrascalai","homepage":null,"size":1267,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ujh:master","ref":"master","sha":"c3e7198eb19494b1526bf13d3bfe8aea2f95dd8a","user":{"login":"ujh","id":28911,"avatar_url":"https://avatars.githubusercontent.com/u/28911?v=3","gravatar_id":"","url":"https://api.github.com/users/ujh","html_url":"https://github.com/ujh","followers_url":"https://api.github.com/users/ujh/followers","following_url":"https://api.github.com/users/ujh/following{/other_user}","gists_url":"https://api.github.com/users/ujh/gists{/gist_id}","starred_url":"https://api.github.com/users/ujh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ujh/subscriptions","organizations_url":"https://api.github.com/users/ujh/orgs","repos_url":"https://api.github.com/users/ujh/repos","events_url":"https://api.github.com/users/ujh/events{/privacy}","received_events_url":"https://api.github.com/users/ujh/received_events","type":"User","site_admin":false},"repo":{"id":18872244,"name":"iomrascalai","full_name":"ujh/iomrascalai","owner":{"login":"ujh","id":28911,"avatar_url":"https://avatars.githubusercontent.com/u/28911?v=3","gravatar_id":"","url":"https://api.github.com/users/ujh","html_url":"https://github.com/ujh","followers_url":"https://api.github.com/users/ujh/followers","following_url":"https://api.github.com/users/ujh/following{/other_user}","gists_url":"https://api.github.com/users/ujh/gists{/gist_id}","starred_url":"https://api.github.com/users/ujh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ujh/subscriptions","organizations_url":"https://api.github.com/users/ujh/orgs","repos_url":"https://api.github.com/users/ujh/repos","events_url":"https://api.github.com/users/ujh/events{/privacy}","received_events_url":"https://api.github.com/users/ujh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ujh/iomrascalai","description":"iomrascálaí is an AI for the game of Go/Weiqi/Baduk written in Rust","fork":false,"url":"https://api.github.com/repos/ujh/iomrascalai","forks_url":"https://api.github.com/repos/ujh/iomrascalai/forks","keys_url":"https://api.github.com/repos/ujh/iomrascalai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ujh/iomrascalai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ujh/iomrascalai/teams","hooks_url":"https://api.github.com/repos/ujh/iomrascalai/hooks","issue_events_url":"https://api.github.com/repos/ujh/iomrascalai/issues/events{/number}","events_url":"https://api.github.com/repos/ujh/iomrascalai/events","assignees_url":"https://api.github.com/repos/ujh/iomrascalai/assignees{/user}","branches_url":"https://api.github.com/repos/ujh/iomrascalai/branches{/branch}","tags_url":"https://api.github.com/repos/ujh/iomrascalai/tags","blobs_url":"https://api.github.com/repos/ujh/iomrascalai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ujh/iomrascalai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ujh/iomrascalai/git/refs{/sha}","trees_url":"https://api.github.com/repos/ujh/iomrascalai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ujh/iomrascalai/statuses/{sha}","languages_url":"https://api.github.com/repos/ujh/iomrascalai/languages","stargazers_url":"https://api.github.com/repos/ujh/iomrascalai/stargazers","contributors_url":"https://api.github.com/repos/ujh/iomrascalai/contributors","subscribers_url":"https://api.github.com/repos/ujh/iomrascalai/subscribers","subscription_url":"https://api.github.com/repos/ujh/iomrascalai/subscription","commits_url":"https://api.github.com/repos/ujh/iomrascalai/commits{/sha}","git_commits_url":"https://api.github.com/repos/ujh/iomrascalai/git/commits{/sha}","comments_url":"https://api.github.com/repos/ujh/iomrascalai/comments{/number}","issue_comment_url":"https://api.github.com/repos/ujh/iomrascalai/issues/comments{/number}","contents_url":"https://api.github.com/repos/ujh/iomrascalai/contents/{+path}","compare_url":"https://api.github.com/repos/ujh/iomrascalai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ujh/iomrascalai/merges","archive_url":"https://api.github.com/repos/ujh/iomrascalai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ujh/iomrascalai/downloads","issues_url":"https://api.github.com/repos/ujh/iomrascalai/issues{/number}","pulls_url":"https://api.github.com/repos/ujh/iomrascalai/pulls{/number}","milestones_url":"https://api.github.com/repos/ujh/iomrascalai/milestones{/number}","notifications_url":"https://api.github.com/repos/ujh/iomrascalai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ujh/iomrascalai/labels{/name}","releases_url":"https://api.github.com/repos/ujh/iomrascalai/releases{/id}","created_at":"2014-04-17T08:48:55Z","updated_at":"2015-04-27T13:42:41Z","pushed_at":"2015-04-27T18:32:52Z","git_url":"git://github.com/ujh/iomrascalai.git","ssh_url":"git@github.com:ujh/iomrascalai.git","clone_url":"https://github.com/ujh/iomrascalai.git","svn_url":"https://github.com/ujh/iomrascalai","homepage":null,"size":3898,"stargazers_count":30,"watchers_count":30,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ujh/iomrascalai/pulls/158"},"html":{"href":"https://github.com/ujh/iomrascalai/pull/158"},"issue":{"href":"https://api.github.com/repos/ujh/iomrascalai/issues/158"},"comments":{"href":"https://api.github.com/repos/ujh/iomrascalai/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/ujh/iomrascalai/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/ujh/iomrascalai/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ujh/iomrascalai/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/ujh/iomrascalai/statuses/bfa03b4e865f38c0aa7d82ca92869a2a7d40a188"}}}}