{"action":"created","comment":{"url":"https://api.github.com/repos/practice271/assignments/pulls/comments/43318714","id":43318714,"diff_hunk":"@@ -0,0 +1,117 @@\n+package hw06\n+import java.util.ArrayList\n+\n+internal fun Boolean?.toChar () : Char {\n+    when (this) {\n+        null -> return '_'\n+        false -> return 'x'\n+        true -> return '0'\n+    }\n+}\n+\n+open class Game (var map : ArrayList<ArrayList<Boolean?>>,\n+            var filling : Int, var winner : Boolean?) {\n+    public fun move (coord1 : Int, coord2 : Int, player : Boolean) {","path":"src/main/kotlin/hw06/main.kt","position":14,"original_position":14,"commit_id":"3575a1bd0800966e2a0c6dde0570f374a5c33852","original_commit_id":"3575a1bd0800966e2a0c6dde0570f374a5c33852","user":{"login":"Sharganov","id":8983727,"avatar_url":"https://avatars.githubusercontent.com/u/8983727?v=3","gravatar_id":"","url":"https://api.github.com/users/Sharganov","html_url":"https://github.com/Sharganov","followers_url":"https://api.github.com/users/Sharganov/followers","following_url":"https://api.github.com/users/Sharganov/following{/other_user}","gists_url":"https://api.github.com/users/Sharganov/gists{/gist_id}","starred_url":"https://api.github.com/users/Sharganov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sharganov/subscriptions","organizations_url":"https://api.github.com/users/Sharganov/orgs","repos_url":"https://api.github.com/users/Sharganov/repos","events_url":"https://api.github.com/users/Sharganov/events{/privacy}","received_events_url":"https://api.github.com/users/Sharganov/received_events","type":"User","site_admin":false},"body":"Возможно, это дело вкуса :), но я бы убрал переменные из конструктора, сделал их полями, написал функцию, которая их делает стартовыми(типо newGame). Это позволило бы отказаться от присваиваний в коде интерфейсов. ","created_at":"2015-10-28T21:11:12Z","updated_at":"2015-10-28T21:11:12Z","html_url":"https://github.com/practice271/assignments/pull/160#discussion_r43318714","pull_request_url":"https://api.github.com/repos/practice271/assignments/pulls/160","_links":{"self":{"href":"https://api.github.com/repos/practice271/assignments/pulls/comments/43318714"},"html":{"href":"https://github.com/practice271/assignments/pull/160#discussion_r43318714"},"pull_request":{"href":"https://api.github.com/repos/practice271/assignments/pulls/160"}}},"pull_request":{"url":"https://api.github.com/repos/practice271/assignments/pulls/160","id":48673000,"html_url":"https://github.com/practice271/assignments/pull/160","diff_url":"https://github.com/practice271/assignments/pull/160.diff","patch_url":"https://github.com/practice271/assignments/pull/160.patch","issue_url":"https://api.github.com/repos/practice271/assignments/issues/160","number":160,"state":"open","locked":false,"title":"hw06","user":{"login":"elizakuz","id":8983697,"avatar_url":"https://avatars.githubusercontent.com/u/8983697?v=3","gravatar_id":"","url":"https://api.github.com/users/elizakuz","html_url":"https://github.com/elizakuz","followers_url":"https://api.github.com/users/elizakuz/followers","following_url":"https://api.github.com/users/elizakuz/following{/other_user}","gists_url":"https://api.github.com/users/elizakuz/gists{/gist_id}","starred_url":"https://api.github.com/users/elizakuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizakuz/subscriptions","organizations_url":"https://api.github.com/users/elizakuz/orgs","repos_url":"https://api.github.com/users/elizakuz/repos","events_url":"https://api.github.com/users/elizakuz/events{/privacy}","received_events_url":"https://api.github.com/users/elizakuz/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-25T06:28:57Z","updated_at":"2015-10-28T21:11:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0dce53f1234d8a244a44588afb88aaf47bcd22f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/practice271/assignments/pulls/160/commits","review_comments_url":"https://api.github.com/repos/practice271/assignments/pulls/160/comments","review_comment_url":"https://api.github.com/repos/practice271/assignments/pulls/comments{/number}","comments_url":"https://api.github.com/repos/practice271/assignments/issues/160/comments","statuses_url":"https://api.github.com/repos/practice271/assignments/statuses/3575a1bd0800966e2a0c6dde0570f374a5c33852","head":{"label":"elizakuz:hw06","ref":"hw06","sha":"3575a1bd0800966e2a0c6dde0570f374a5c33852","user":{"login":"elizakuz","id":8983697,"avatar_url":"https://avatars.githubusercontent.com/u/8983697?v=3","gravatar_id":"","url":"https://api.github.com/users/elizakuz","html_url":"https://github.com/elizakuz","followers_url":"https://api.github.com/users/elizakuz/followers","following_url":"https://api.github.com/users/elizakuz/following{/other_user}","gists_url":"https://api.github.com/users/elizakuz/gists{/gist_id}","starred_url":"https://api.github.com/users/elizakuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizakuz/subscriptions","organizations_url":"https://api.github.com/users/elizakuz/orgs","repos_url":"https://api.github.com/users/elizakuz/repos","events_url":"https://api.github.com/users/elizakuz/events{/privacy}","received_events_url":"https://api.github.com/users/elizakuz/received_events","type":"User","site_admin":false},"repo":{"id":42384726,"name":"assignments","full_name":"elizakuz/assignments","owner":{"login":"elizakuz","id":8983697,"avatar_url":"https://avatars.githubusercontent.com/u/8983697?v=3","gravatar_id":"","url":"https://api.github.com/users/elizakuz","html_url":"https://github.com/elizakuz","followers_url":"https://api.github.com/users/elizakuz/followers","following_url":"https://api.github.com/users/elizakuz/following{/other_user}","gists_url":"https://api.github.com/users/elizakuz/gists{/gist_id}","starred_url":"https://api.github.com/users/elizakuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizakuz/subscriptions","organizations_url":"https://api.github.com/users/elizakuz/orgs","repos_url":"https://api.github.com/users/elizakuz/repos","events_url":"https://api.github.com/users/elizakuz/events{/privacy}","received_events_url":"https://api.github.com/users/elizakuz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elizakuz/assignments","description":"The repository to fork and complete assignments in it.","fork":true,"url":"https://api.github.com/repos/elizakuz/assignments","forks_url":"https://api.github.com/repos/elizakuz/assignments/forks","keys_url":"https://api.github.com/repos/elizakuz/assignments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elizakuz/assignments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elizakuz/assignments/teams","hooks_url":"https://api.github.com/repos/elizakuz/assignments/hooks","issue_events_url":"https://api.github.com/repos/elizakuz/assignments/issues/events{/number}","events_url":"https://api.github.com/repos/elizakuz/assignments/events","assignees_url":"https://api.github.com/repos/elizakuz/assignments/assignees{/user}","branches_url":"https://api.github.com/repos/elizakuz/assignments/branches{/branch}","tags_url":"https://api.github.com/repos/elizakuz/assignments/tags","blobs_url":"https://api.github.com/repos/elizakuz/assignments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elizakuz/assignments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elizakuz/assignments/git/refs{/sha}","trees_url":"https://api.github.com/repos/elizakuz/assignments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elizakuz/assignments/statuses/{sha}","languages_url":"https://api.github.com/repos/elizakuz/assignments/languages","stargazers_url":"https://api.github.com/repos/elizakuz/assignments/stargazers","contributors_url":"https://api.github.com/repos/elizakuz/assignments/contributors","subscribers_url":"https://api.github.com/repos/elizakuz/assignments/subscribers","subscription_url":"https://api.github.com/repos/elizakuz/assignments/subscription","commits_url":"https://api.github.com/repos/elizakuz/assignments/commits{/sha}","git_commits_url":"https://api.github.com/repos/elizakuz/assignments/git/commits{/sha}","comments_url":"https://api.github.com/repos/elizakuz/assignments/comments{/number}","issue_comment_url":"https://api.github.com/repos/elizakuz/assignments/issues/comments{/number}","contents_url":"https://api.github.com/repos/elizakuz/assignments/contents/{+path}","compare_url":"https://api.github.com/repos/elizakuz/assignments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elizakuz/assignments/merges","archive_url":"https://api.github.com/repos/elizakuz/assignments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elizakuz/assignments/downloads","issues_url":"https://api.github.com/repos/elizakuz/assignments/issues{/number}","pulls_url":"https://api.github.com/repos/elizakuz/assignments/pulls{/number}","milestones_url":"https://api.github.com/repos/elizakuz/assignments/milestones{/number}","notifications_url":"https://api.github.com/repos/elizakuz/assignments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elizakuz/assignments/labels{/name}","releases_url":"https://api.github.com/repos/elizakuz/assignments/releases{/id}","created_at":"2015-09-13T05:18:38Z","updated_at":"2015-09-13T07:00:31Z","pushed_at":"2015-10-26T20:40:35Z","git_url":"git://github.com/elizakuz/assignments.git","ssh_url":"git@github.com:elizakuz/assignments.git","clone_url":"https://github.com/elizakuz/assignments.git","svn_url":"https://github.com/elizakuz/assignments","homepage":null,"size":3476,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"practice271:master","ref":"master","sha":"62b71f37ac55ed5a1947e89152d6509edd4639f6","user":{"login":"practice271","id":14125893,"avatar_url":"https://avatars.githubusercontent.com/u/14125893?v=3","gravatar_id":"","url":"https://api.github.com/users/practice271","html_url":"https://github.com/practice271","followers_url":"https://api.github.com/users/practice271/followers","following_url":"https://api.github.com/users/practice271/following{/other_user}","gists_url":"https://api.github.com/users/practice271/gists{/gist_id}","starred_url":"https://api.github.com/users/practice271/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/practice271/subscriptions","organizations_url":"https://api.github.com/users/practice271/orgs","repos_url":"https://api.github.com/users/practice271/repos","events_url":"https://api.github.com/users/practice271/events{/privacy}","received_events_url":"https://api.github.com/users/practice271/received_events","type":"Organization","site_admin":false},"repo":{"id":41914860,"name":"assignments","full_name":"practice271/assignments","owner":{"login":"practice271","id":14125893,"avatar_url":"https://avatars.githubusercontent.com/u/14125893?v=3","gravatar_id":"","url":"https://api.github.com/users/practice271","html_url":"https://github.com/practice271","followers_url":"https://api.github.com/users/practice271/followers","following_url":"https://api.github.com/users/practice271/following{/other_user}","gists_url":"https://api.github.com/users/practice271/gists{/gist_id}","starred_url":"https://api.github.com/users/practice271/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/practice271/subscriptions","organizations_url":"https://api.github.com/users/practice271/orgs","repos_url":"https://api.github.com/users/practice271/repos","events_url":"https://api.github.com/users/practice271/events{/privacy}","received_events_url":"https://api.github.com/users/practice271/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/practice271/assignments","description":"The repository to fork and complete assignments in it.","fork":false,"url":"https://api.github.com/repos/practice271/assignments","forks_url":"https://api.github.com/repos/practice271/assignments/forks","keys_url":"https://api.github.com/repos/practice271/assignments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/practice271/assignments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/practice271/assignments/teams","hooks_url":"https://api.github.com/repos/practice271/assignments/hooks","issue_events_url":"https://api.github.com/repos/practice271/assignments/issues/events{/number}","events_url":"https://api.github.com/repos/practice271/assignments/events","assignees_url":"https://api.github.com/repos/practice271/assignments/assignees{/user}","branches_url":"https://api.github.com/repos/practice271/assignments/branches{/branch}","tags_url":"https://api.github.com/repos/practice271/assignments/tags","blobs_url":"https://api.github.com/repos/practice271/assignments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/practice271/assignments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/practice271/assignments/git/refs{/sha}","trees_url":"https://api.github.com/repos/practice271/assignments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/practice271/assignments/statuses/{sha}","languages_url":"https://api.github.com/repos/practice271/assignments/languages","stargazers_url":"https://api.github.com/repos/practice271/assignments/stargazers","contributors_url":"https://api.github.com/repos/practice271/assignments/contributors","subscribers_url":"https://api.github.com/repos/practice271/assignments/subscribers","subscription_url":"https://api.github.com/repos/practice271/assignments/subscription","commits_url":"https://api.github.com/repos/practice271/assignments/commits{/sha}","git_commits_url":"https://api.github.com/repos/practice271/assignments/git/commits{/sha}","comments_url":"https://api.github.com/repos/practice271/assignments/comments{/number}","issue_comment_url":"https://api.github.com/repos/practice271/assignments/issues/comments{/number}","contents_url":"https://api.github.com/repos/practice271/assignments/contents/{+path}","compare_url":"https://api.github.com/repos/practice271/assignments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/practice271/assignments/merges","archive_url":"https://api.github.com/repos/practice271/assignments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/practice271/assignments/downloads","issues_url":"https://api.github.com/repos/practice271/assignments/issues{/number}","pulls_url":"https://api.github.com/repos/practice271/assignments/pulls{/number}","milestones_url":"https://api.github.com/repos/practice271/assignments/milestones{/number}","notifications_url":"https://api.github.com/repos/practice271/assignments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/practice271/assignments/labels{/name}","releases_url":"https://api.github.com/repos/practice271/assignments/releases{/id}","created_at":"2015-09-04T12:36:14Z","updated_at":"2015-10-01T13:39:12Z","pushed_at":"2015-10-28T19:07:18Z","git_url":"git://github.com/practice271/assignments.git","ssh_url":"git@github.com:practice271/assignments.git","clone_url":"https://github.com/practice271/assignments.git","svn_url":"https://github.com/practice271/assignments","homepage":null,"size":5893,"stargazers_count":2,"watchers_count":2,"language":"Kotlin","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":21,"forks":20,"open_issues":21,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/practice271/assignments/pulls/160"},"html":{"href":"https://github.com/practice271/assignments/pull/160"},"issue":{"href":"https://api.github.com/repos/practice271/assignments/issues/160"},"comments":{"href":"https://api.github.com/repos/practice271/assignments/issues/160/comments"},"review_comments":{"href":"https://api.github.com/repos/practice271/assignments/pulls/160/comments"},"review_comment":{"href":"https://api.github.com/repos/practice271/assignments/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/practice271/assignments/pulls/160/commits"},"statuses":{"href":"https://api.github.com/repos/practice271/assignments/statuses/3575a1bd0800966e2a0c6dde0570f374a5c33852"}}}}