{"action":"created","comment":{"url":"https://api.github.com/repos/ornicar/lila/pulls/comments/38662068","id":38662068,"diff_hunk":"@@ -116,7 +116,7 @@ case class Game(\n    * It starts at 1, and is incremented after Black's move.\n    * NOTE: Duplicates chess.Game.fullMoveNumber (avoids loading toChess)\n    */\n-  def fullMoveNumber: Int = 1 + turns / 2\n+  def fullMoveNumber: Int = 1 + (turns - 1) / 2","path":"modules/game/src/main/Game.scala","position":5,"original_position":5,"commit_id":"cf5ae3aabfacdcbba2903a4fd0a8c7ff8351bab1","original_commit_id":"cf5ae3aabfacdcbba2903a4fd0a8c7ff8351bab1","user":{"login":"Unihedro","id":5595067,"avatar_url":"https://avatars.githubusercontent.com/u/5595067?v=3","gravatar_id":"","url":"https://api.github.com/users/Unihedro","html_url":"https://github.com/Unihedro","followers_url":"https://api.github.com/users/Unihedro/followers","following_url":"https://api.github.com/users/Unihedro/following{/other_user}","gists_url":"https://api.github.com/users/Unihedro/gists{/gist_id}","starred_url":"https://api.github.com/users/Unihedro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unihedro/subscriptions","organizations_url":"https://api.github.com/users/Unihedro/orgs","repos_url":"https://api.github.com/users/Unihedro/repos","events_url":"https://api.github.com/users/Unihedro/events{/privacy}","received_events_url":"https://api.github.com/users/Unihedro/received_events","type":"User","site_admin":false},"body":"This value is only used in widgets.template.scala 93.47 (it's the only usage), the original field that this duplicates remains unchanged.","created_at":"2015-09-03T15:53:33Z","updated_at":"2015-09-03T15:53:33Z","html_url":"https://github.com/ornicar/lila/pull/884#discussion_r38662068","pull_request_url":"https://api.github.com/repos/ornicar/lila/pulls/884","_links":{"self":{"href":"https://api.github.com/repos/ornicar/lila/pulls/comments/38662068"},"html":{"href":"https://github.com/ornicar/lila/pull/884#discussion_r38662068"},"pull_request":{"href":"https://api.github.com/repos/ornicar/lila/pulls/884"}}},"pull_request":{"url":"https://api.github.com/repos/ornicar/lila/pulls/884","id":44123736,"html_url":"https://github.com/ornicar/lila/pull/884","diff_url":"https://github.com/ornicar/lila/pull/884.diff","patch_url":"https://github.com/ornicar/lila/pull/884.patch","issue_url":"https://api.github.com/repos/ornicar/lila/issues/884","number":884,"state":"open","locked":false,"title":"Fixes move count in game widget when last move is played by black.","user":{"login":"Unihedro","id":5595067,"avatar_url":"https://avatars.githubusercontent.com/u/5595067?v=3","gravatar_id":"","url":"https://api.github.com/users/Unihedro","html_url":"https://github.com/Unihedro","followers_url":"https://api.github.com/users/Unihedro/followers","following_url":"https://api.github.com/users/Unihedro/following{/other_user}","gists_url":"https://api.github.com/users/Unihedro/gists{/gist_id}","starred_url":"https://api.github.com/users/Unihedro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unihedro/subscriptions","organizations_url":"https://api.github.com/users/Unihedro/orgs","repos_url":"https://api.github.com/users/Unihedro/repos","events_url":"https://api.github.com/users/Unihedro/events{/privacy}","received_events_url":"https://api.github.com/users/Unihedro/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-03T15:48:43Z","updated_at":"2015-09-03T15:53:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abb182d187cf08188b7be31a2d7df129809c96ee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ornicar/lila/pulls/884/commits","review_comments_url":"https://api.github.com/repos/ornicar/lila/pulls/884/comments","review_comment_url":"https://api.github.com/repos/ornicar/lila/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ornicar/lila/issues/884/comments","statuses_url":"https://api.github.com/repos/ornicar/lila/statuses/cf5ae3aabfacdcbba2903a4fd0a8c7ff8351bab1","head":{"label":"ornicar:roundingmove","ref":"roundingmove","sha":"cf5ae3aabfacdcbba2903a4fd0a8c7ff8351bab1","user":{"login":"ornicar","id":140370,"avatar_url":"https://avatars.githubusercontent.com/u/140370?v=3","gravatar_id":"","url":"https://api.github.com/users/ornicar","html_url":"https://github.com/ornicar","followers_url":"https://api.github.com/users/ornicar/followers","following_url":"https://api.github.com/users/ornicar/following{/other_user}","gists_url":"https://api.github.com/users/ornicar/gists{/gist_id}","starred_url":"https://api.github.com/users/ornicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ornicar/subscriptions","organizations_url":"https://api.github.com/users/ornicar/orgs","repos_url":"https://api.github.com/users/ornicar/repos","events_url":"https://api.github.com/users/ornicar/events{/privacy}","received_events_url":"https://api.github.com/users/ornicar/received_events","type":"User","site_admin":false},"repo":{"id":3507455,"name":"lila","full_name":"ornicar/lila","owner":{"login":"ornicar","id":140370,"avatar_url":"https://avatars.githubusercontent.com/u/140370?v=3","gravatar_id":"","url":"https://api.github.com/users/ornicar","html_url":"https://github.com/ornicar","followers_url":"https://api.github.com/users/ornicar/followers","following_url":"https://api.github.com/users/ornicar/following{/other_user}","gists_url":"https://api.github.com/users/ornicar/gists{/gist_id}","starred_url":"https://api.github.com/users/ornicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ornicar/subscriptions","organizations_url":"https://api.github.com/users/ornicar/orgs","repos_url":"https://api.github.com/users/ornicar/repos","events_url":"https://api.github.com/users/ornicar/events{/privacy}","received_events_url":"https://api.github.com/users/ornicar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ornicar/lila","description":"The forever free, adless and open source chess server.","fork":false,"url":"https://api.github.com/repos/ornicar/lila","forks_url":"https://api.github.com/repos/ornicar/lila/forks","keys_url":"https://api.github.com/repos/ornicar/lila/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ornicar/lila/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ornicar/lila/teams","hooks_url":"https://api.github.com/repos/ornicar/lila/hooks","issue_events_url":"https://api.github.com/repos/ornicar/lila/issues/events{/number}","events_url":"https://api.github.com/repos/ornicar/lila/events","assignees_url":"https://api.github.com/repos/ornicar/lila/assignees{/user}","branches_url":"https://api.github.com/repos/ornicar/lila/branches{/branch}","tags_url":"https://api.github.com/repos/ornicar/lila/tags","blobs_url":"https://api.github.com/repos/ornicar/lila/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ornicar/lila/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ornicar/lila/git/refs{/sha}","trees_url":"https://api.github.com/repos/ornicar/lila/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ornicar/lila/statuses/{sha}","languages_url":"https://api.github.com/repos/ornicar/lila/languages","stargazers_url":"https://api.github.com/repos/ornicar/lila/stargazers","contributors_url":"https://api.github.com/repos/ornicar/lila/contributors","subscribers_url":"https://api.github.com/repos/ornicar/lila/subscribers","subscription_url":"https://api.github.com/repos/ornicar/lila/subscription","commits_url":"https://api.github.com/repos/ornicar/lila/commits{/sha}","git_commits_url":"https://api.github.com/repos/ornicar/lila/git/commits{/sha}","comments_url":"https://api.github.com/repos/ornicar/lila/comments{/number}","issue_comment_url":"https://api.github.com/repos/ornicar/lila/issues/comments{/number}","contents_url":"https://api.github.com/repos/ornicar/lila/contents/{+path}","compare_url":"https://api.github.com/repos/ornicar/lila/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ornicar/lila/merges","archive_url":"https://api.github.com/repos/ornicar/lila/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ornicar/lila/downloads","issues_url":"https://api.github.com/repos/ornicar/lila/issues{/number}","pulls_url":"https://api.github.com/repos/ornicar/lila/pulls{/number}","milestones_url":"https://api.github.com/repos/ornicar/lila/milestones{/number}","notifications_url":"https://api.github.com/repos/ornicar/lila/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ornicar/lila/labels{/name}","releases_url":"https://api.github.com/repos/ornicar/lila/releases{/id}","created_at":"2012-02-21T19:46:55Z","updated_at":"2015-09-03T13:49:42Z","pushed_at":"2015-09-03T15:48:44Z","git_url":"git://github.com/ornicar/lila.git","ssh_url":"git@github.com:ornicar/lila.git","clone_url":"https://github.com/ornicar/lila.git","svn_url":"https://github.com/ornicar/lila","homepage":"http://lichess.org","size":95579,"stargazers_count":1335,"watchers_count":1335,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":249,"mirror_url":null,"open_issues_count":131,"forks":249,"open_issues":131,"watchers":1335,"default_branch":"master"}},"base":{"label":"ornicar:master","ref":"master","sha":"b3ee9d328348021cfa92b7ef744243f105ddfe17","user":{"login":"ornicar","id":140370,"avatar_url":"https://avatars.githubusercontent.com/u/140370?v=3","gravatar_id":"","url":"https://api.github.com/users/ornicar","html_url":"https://github.com/ornicar","followers_url":"https://api.github.com/users/ornicar/followers","following_url":"https://api.github.com/users/ornicar/following{/other_user}","gists_url":"https://api.github.com/users/ornicar/gists{/gist_id}","starred_url":"https://api.github.com/users/ornicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ornicar/subscriptions","organizations_url":"https://api.github.com/users/ornicar/orgs","repos_url":"https://api.github.com/users/ornicar/repos","events_url":"https://api.github.com/users/ornicar/events{/privacy}","received_events_url":"https://api.github.com/users/ornicar/received_events","type":"User","site_admin":false},"repo":{"id":3507455,"name":"lila","full_name":"ornicar/lila","owner":{"login":"ornicar","id":140370,"avatar_url":"https://avatars.githubusercontent.com/u/140370?v=3","gravatar_id":"","url":"https://api.github.com/users/ornicar","html_url":"https://github.com/ornicar","followers_url":"https://api.github.com/users/ornicar/followers","following_url":"https://api.github.com/users/ornicar/following{/other_user}","gists_url":"https://api.github.com/users/ornicar/gists{/gist_id}","starred_url":"https://api.github.com/users/ornicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ornicar/subscriptions","organizations_url":"https://api.github.com/users/ornicar/orgs","repos_url":"https://api.github.com/users/ornicar/repos","events_url":"https://api.github.com/users/ornicar/events{/privacy}","received_events_url":"https://api.github.com/users/ornicar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ornicar/lila","description":"The forever free, adless and open source chess server.","fork":false,"url":"https://api.github.com/repos/ornicar/lila","forks_url":"https://api.github.com/repos/ornicar/lila/forks","keys_url":"https://api.github.com/repos/ornicar/lila/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ornicar/lila/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ornicar/lila/teams","hooks_url":"https://api.github.com/repos/ornicar/lila/hooks","issue_events_url":"https://api.github.com/repos/ornicar/lila/issues/events{/number}","events_url":"https://api.github.com/repos/ornicar/lila/events","assignees_url":"https://api.github.com/repos/ornicar/lila/assignees{/user}","branches_url":"https://api.github.com/repos/ornicar/lila/branches{/branch}","tags_url":"https://api.github.com/repos/ornicar/lila/tags","blobs_url":"https://api.github.com/repos/ornicar/lila/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ornicar/lila/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ornicar/lila/git/refs{/sha}","trees_url":"https://api.github.com/repos/ornicar/lila/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ornicar/lila/statuses/{sha}","languages_url":"https://api.github.com/repos/ornicar/lila/languages","stargazers_url":"https://api.github.com/repos/ornicar/lila/stargazers","contributors_url":"https://api.github.com/repos/ornicar/lila/contributors","subscribers_url":"https://api.github.com/repos/ornicar/lila/subscribers","subscription_url":"https://api.github.com/repos/ornicar/lila/subscription","commits_url":"https://api.github.com/repos/ornicar/lila/commits{/sha}","git_commits_url":"https://api.github.com/repos/ornicar/lila/git/commits{/sha}","comments_url":"https://api.github.com/repos/ornicar/lila/comments{/number}","issue_comment_url":"https://api.github.com/repos/ornicar/lila/issues/comments{/number}","contents_url":"https://api.github.com/repos/ornicar/lila/contents/{+path}","compare_url":"https://api.github.com/repos/ornicar/lila/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ornicar/lila/merges","archive_url":"https://api.github.com/repos/ornicar/lila/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ornicar/lila/downloads","issues_url":"https://api.github.com/repos/ornicar/lila/issues{/number}","pulls_url":"https://api.github.com/repos/ornicar/lila/pulls{/number}","milestones_url":"https://api.github.com/repos/ornicar/lila/milestones{/number}","notifications_url":"https://api.github.com/repos/ornicar/lila/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ornicar/lila/labels{/name}","releases_url":"https://api.github.com/repos/ornicar/lila/releases{/id}","created_at":"2012-02-21T19:46:55Z","updated_at":"2015-09-03T13:49:42Z","pushed_at":"2015-09-03T15:48:44Z","git_url":"git://github.com/ornicar/lila.git","ssh_url":"git@github.com:ornicar/lila.git","clone_url":"https://github.com/ornicar/lila.git","svn_url":"https://github.com/ornicar/lila","homepage":"http://lichess.org","size":95579,"stargazers_count":1335,"watchers_count":1335,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":249,"mirror_url":null,"open_issues_count":131,"forks":249,"open_issues":131,"watchers":1335,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ornicar/lila/pulls/884"},"html":{"href":"https://github.com/ornicar/lila/pull/884"},"issue":{"href":"https://api.github.com/repos/ornicar/lila/issues/884"},"comments":{"href":"https://api.github.com/repos/ornicar/lila/issues/884/comments"},"review_comments":{"href":"https://api.github.com/repos/ornicar/lila/pulls/884/comments"},"review_comment":{"href":"https://api.github.com/repos/ornicar/lila/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ornicar/lila/pulls/884/commits"},"statuses":{"href":"https://api.github.com/repos/ornicar/lila/statuses/cf5ae3aabfacdcbba2903a4fd0a8c7ff8351bab1"}}}}