{"action":"created","comment":{"url":"https://api.github.com/repos/krzyskk/Akademia/pulls/comments/172758007","pull_request_review_id":101658157,"id":172758007,"diff_hunk":"@@ -0,0 +1,125 @@\n+class Game\n+attr_accessor :board\n+SIZE = 25\n+\n+  def initialize(board)\n+    @board = board\n+  end\n+\n+  def self.init_board\n+    Array.new(SIZE){Array.new(SIZE,0)}\n+  end\n+\n+  def self.set_board(input)\n+    if input == nil\n+      @board = self.init_board\n+    else\n+      @board = params_board(input)\n+    end\n+  end\n+\n+  def self.params_table(input)\n+    i=0\n+    params_table=[]\n+    input.each do |cell|\n+      if cell == \"1\"\n+        cell=1\n+      elsif input[i+1] == \"X\" || input[i+1] == nil\n+        cell = 0\n+      else\n+        cell = cell\n+      end\n+      params_table<<cell\n+      i=i+1\n+    end\n+    params_table.delete(\"X\")","path":"zadanie_6/game.rb","position":35,"original_position":35,"commit_id":"8d2683e37ddb52d4177ac897f45f5af87013c30a","original_commit_id":"8d2683e37ddb52d4177ac897f45f5af87013c30a","user":{"login":"bartek-rogalski","id":9436268,"avatar_url":"https://avatars3.githubusercontent.com/u/9436268?v=4","gravatar_id":"","url":"https://api.github.com/users/bartek-rogalski","html_url":"https://github.com/bartek-rogalski","followers_url":"https://api.github.com/users/bartek-rogalski/followers","following_url":"https://api.github.com/users/bartek-rogalski/following{/other_user}","gists_url":"https://api.github.com/users/bartek-rogalski/gists{/gist_id}","starred_url":"https://api.github.com/users/bartek-rogalski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartek-rogalski/subscriptions","organizations_url":"https://api.github.com/users/bartek-rogalski/orgs","repos_url":"https://api.github.com/users/bartek-rogalski/repos","events_url":"https://api.github.com/users/bartek-rogalski/events{/privacy}","received_events_url":"https://api.github.com/users/bartek-rogalski/received_events","type":"User","site_admin":false},"body":"`Delete` robi ponowny przebieg przez wszystkie elementy tablicy. Lepiej byłoby gdyby ta kwestia zostałą rozwiązana krok wcześniej na etapie `if`.","created_at":"2018-03-07T07:23:23Z","updated_at":"2018-03-07T07:33:19Z","html_url":"https://github.com/krzyskk/Akademia/pull/6#discussion_r172758007","pull_request_url":"https://api.github.com/repos/krzyskk/Akademia/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/krzyskk/Akademia/pulls/comments/172758007"},"html":{"href":"https://github.com/krzyskk/Akademia/pull/6#discussion_r172758007"},"pull_request":{"href":"https://api.github.com/repos/krzyskk/Akademia/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/krzyskk/Akademia/pulls/6","id":168479562,"html_url":"https://github.com/krzyskk/Akademia/pull/6","diff_url":"https://github.com/krzyskk/Akademia/pull/6.diff","patch_url":"https://github.com/krzyskk/Akademia/pull/6.patch","issue_url":"https://api.github.com/repos/krzyskk/Akademia/issues/6","number":6,"state":"open","locked":false,"title":"Zadanie 6","user":{"login":"krzyskk","id":26580398,"avatar_url":"https://avatars0.githubusercontent.com/u/26580398?v=4","gravatar_id":"","url":"https://api.github.com/users/krzyskk","html_url":"https://github.com/krzyskk","followers_url":"https://api.github.com/users/krzyskk/followers","following_url":"https://api.github.com/users/krzyskk/following{/other_user}","gists_url":"https://api.github.com/users/krzyskk/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyskk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyskk/subscriptions","organizations_url":"https://api.github.com/users/krzyskk/orgs","repos_url":"https://api.github.com/users/krzyskk/repos","events_url":"https://api.github.com/users/krzyskk/events{/privacy}","received_events_url":"https://api.github.com/users/krzyskk/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-11T22:53:22Z","updated_at":"2018-03-07T07:33:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"591de383e369509c4760749514b9c82ca60fde6d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/krzyskk/Akademia/pulls/6/commits","review_comments_url":"https://api.github.com/repos/krzyskk/Akademia/pulls/6/comments","review_comment_url":"https://api.github.com/repos/krzyskk/Akademia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/krzyskk/Akademia/issues/6/comments","statuses_url":"https://api.github.com/repos/krzyskk/Akademia/statuses/8d2683e37ddb52d4177ac897f45f5af87013c30a","head":{"label":"krzyskk:zadanie_6","ref":"zadanie_6","sha":"8d2683e37ddb52d4177ac897f45f5af87013c30a","user":{"login":"krzyskk","id":26580398,"avatar_url":"https://avatars0.githubusercontent.com/u/26580398?v=4","gravatar_id":"","url":"https://api.github.com/users/krzyskk","html_url":"https://github.com/krzyskk","followers_url":"https://api.github.com/users/krzyskk/followers","following_url":"https://api.github.com/users/krzyskk/following{/other_user}","gists_url":"https://api.github.com/users/krzyskk/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyskk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyskk/subscriptions","organizations_url":"https://api.github.com/users/krzyskk/orgs","repos_url":"https://api.github.com/users/krzyskk/repos","events_url":"https://api.github.com/users/krzyskk/events{/privacy}","received_events_url":"https://api.github.com/users/krzyskk/received_events","type":"User","site_admin":false},"repo":{"id":112970985,"name":"Akademia","full_name":"krzyskk/Akademia","owner":{"login":"krzyskk","id":26580398,"avatar_url":"https://avatars0.githubusercontent.com/u/26580398?v=4","gravatar_id":"","url":"https://api.github.com/users/krzyskk","html_url":"https://github.com/krzyskk","followers_url":"https://api.github.com/users/krzyskk/followers","following_url":"https://api.github.com/users/krzyskk/following{/other_user}","gists_url":"https://api.github.com/users/krzyskk/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyskk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyskk/subscriptions","organizations_url":"https://api.github.com/users/krzyskk/orgs","repos_url":"https://api.github.com/users/krzyskk/repos","events_url":"https://api.github.com/users/krzyskk/events{/privacy}","received_events_url":"https://api.github.com/users/krzyskk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krzyskk/Akademia","description":null,"fork":false,"url":"https://api.github.com/repos/krzyskk/Akademia","forks_url":"https://api.github.com/repos/krzyskk/Akademia/forks","keys_url":"https://api.github.com/repos/krzyskk/Akademia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krzyskk/Akademia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krzyskk/Akademia/teams","hooks_url":"https://api.github.com/repos/krzyskk/Akademia/hooks","issue_events_url":"https://api.github.com/repos/krzyskk/Akademia/issues/events{/number}","events_url":"https://api.github.com/repos/krzyskk/Akademia/events","assignees_url":"https://api.github.com/repos/krzyskk/Akademia/assignees{/user}","branches_url":"https://api.github.com/repos/krzyskk/Akademia/branches{/branch}","tags_url":"https://api.github.com/repos/krzyskk/Akademia/tags","blobs_url":"https://api.github.com/repos/krzyskk/Akademia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krzyskk/Akademia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krzyskk/Akademia/git/refs{/sha}","trees_url":"https://api.github.com/repos/krzyskk/Akademia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krzyskk/Akademia/statuses/{sha}","languages_url":"https://api.github.com/repos/krzyskk/Akademia/languages","stargazers_url":"https://api.github.com/repos/krzyskk/Akademia/stargazers","contributors_url":"https://api.github.com/repos/krzyskk/Akademia/contributors","subscribers_url":"https://api.github.com/repos/krzyskk/Akademia/subscribers","subscription_url":"https://api.github.com/repos/krzyskk/Akademia/subscription","commits_url":"https://api.github.com/repos/krzyskk/Akademia/commits{/sha}","git_commits_url":"https://api.github.com/repos/krzyskk/Akademia/git/commits{/sha}","comments_url":"https://api.github.com/repos/krzyskk/Akademia/comments{/number}","issue_comment_url":"https://api.github.com/repos/krzyskk/Akademia/issues/comments{/number}","contents_url":"https://api.github.com/repos/krzyskk/Akademia/contents/{+path}","compare_url":"https://api.github.com/repos/krzyskk/Akademia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krzyskk/Akademia/merges","archive_url":"https://api.github.com/repos/krzyskk/Akademia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krzyskk/Akademia/downloads","issues_url":"https://api.github.com/repos/krzyskk/Akademia/issues{/number}","pulls_url":"https://api.github.com/repos/krzyskk/Akademia/pulls{/number}","milestones_url":"https://api.github.com/repos/krzyskk/Akademia/milestones{/number}","notifications_url":"https://api.github.com/repos/krzyskk/Akademia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krzyskk/Akademia/labels{/name}","releases_url":"https://api.github.com/repos/krzyskk/Akademia/releases{/id}","deployments_url":"https://api.github.com/repos/krzyskk/Akademia/deployments","created_at":"2017-12-03T22:57:33Z","updated_at":"2017-12-03T22:57:33Z","pushed_at":"2018-02-11T22:53:23Z","git_url":"git://github.com/krzyskk/Akademia.git","ssh_url":"git@github.com:krzyskk/Akademia.git","clone_url":"https://github.com/krzyskk/Akademia.git","svn_url":"https://github.com/krzyskk/Akademia","homepage":null,"size":1581,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"krzyskk:master","ref":"master","sha":"8719c148c3ec96ac2b8fef9fd9cfaef342f3664c","user":{"login":"krzyskk","id":26580398,"avatar_url":"https://avatars0.githubusercontent.com/u/26580398?v=4","gravatar_id":"","url":"https://api.github.com/users/krzyskk","html_url":"https://github.com/krzyskk","followers_url":"https://api.github.com/users/krzyskk/followers","following_url":"https://api.github.com/users/krzyskk/following{/other_user}","gists_url":"https://api.github.com/users/krzyskk/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyskk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyskk/subscriptions","organizations_url":"https://api.github.com/users/krzyskk/orgs","repos_url":"https://api.github.com/users/krzyskk/repos","events_url":"https://api.github.com/users/krzyskk/events{/privacy}","received_events_url":"https://api.github.com/users/krzyskk/received_events","type":"User","site_admin":false},"repo":{"id":112970985,"name":"Akademia","full_name":"krzyskk/Akademia","owner":{"login":"krzyskk","id":26580398,"avatar_url":"https://avatars0.githubusercontent.com/u/26580398?v=4","gravatar_id":"","url":"https://api.github.com/users/krzyskk","html_url":"https://github.com/krzyskk","followers_url":"https://api.github.com/users/krzyskk/followers","following_url":"https://api.github.com/users/krzyskk/following{/other_user}","gists_url":"https://api.github.com/users/krzyskk/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyskk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyskk/subscriptions","organizations_url":"https://api.github.com/users/krzyskk/orgs","repos_url":"https://api.github.com/users/krzyskk/repos","events_url":"https://api.github.com/users/krzyskk/events{/privacy}","received_events_url":"https://api.github.com/users/krzyskk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krzyskk/Akademia","description":null,"fork":false,"url":"https://api.github.com/repos/krzyskk/Akademia","forks_url":"https://api.github.com/repos/krzyskk/Akademia/forks","keys_url":"https://api.github.com/repos/krzyskk/Akademia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krzyskk/Akademia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krzyskk/Akademia/teams","hooks_url":"https://api.github.com/repos/krzyskk/Akademia/hooks","issue_events_url":"https://api.github.com/repos/krzyskk/Akademia/issues/events{/number}","events_url":"https://api.github.com/repos/krzyskk/Akademia/events","assignees_url":"https://api.github.com/repos/krzyskk/Akademia/assignees{/user}","branches_url":"https://api.github.com/repos/krzyskk/Akademia/branches{/branch}","tags_url":"https://api.github.com/repos/krzyskk/Akademia/tags","blobs_url":"https://api.github.com/repos/krzyskk/Akademia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krzyskk/Akademia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krzyskk/Akademia/git/refs{/sha}","trees_url":"https://api.github.com/repos/krzyskk/Akademia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krzyskk/Akademia/statuses/{sha}","languages_url":"https://api.github.com/repos/krzyskk/Akademia/languages","stargazers_url":"https://api.github.com/repos/krzyskk/Akademia/stargazers","contributors_url":"https://api.github.com/repos/krzyskk/Akademia/contributors","subscribers_url":"https://api.github.com/repos/krzyskk/Akademia/subscribers","subscription_url":"https://api.github.com/repos/krzyskk/Akademia/subscription","commits_url":"https://api.github.com/repos/krzyskk/Akademia/commits{/sha}","git_commits_url":"https://api.github.com/repos/krzyskk/Akademia/git/commits{/sha}","comments_url":"https://api.github.com/repos/krzyskk/Akademia/comments{/number}","issue_comment_url":"https://api.github.com/repos/krzyskk/Akademia/issues/comments{/number}","contents_url":"https://api.github.com/repos/krzyskk/Akademia/contents/{+path}","compare_url":"https://api.github.com/repos/krzyskk/Akademia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krzyskk/Akademia/merges","archive_url":"https://api.github.com/repos/krzyskk/Akademia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krzyskk/Akademia/downloads","issues_url":"https://api.github.com/repos/krzyskk/Akademia/issues{/number}","pulls_url":"https://api.github.com/repos/krzyskk/Akademia/pulls{/number}","milestones_url":"https://api.github.com/repos/krzyskk/Akademia/milestones{/number}","notifications_url":"https://api.github.com/repos/krzyskk/Akademia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krzyskk/Akademia/labels{/name}","releases_url":"https://api.github.com/repos/krzyskk/Akademia/releases{/id}","deployments_url":"https://api.github.com/repos/krzyskk/Akademia/deployments","created_at":"2017-12-03T22:57:33Z","updated_at":"2017-12-03T22:57:33Z","pushed_at":"2018-02-11T22:53:23Z","git_url":"git://github.com/krzyskk/Akademia.git","ssh_url":"git@github.com:krzyskk/Akademia.git","clone_url":"https://github.com/krzyskk/Akademia.git","svn_url":"https://github.com/krzyskk/Akademia","homepage":null,"size":1581,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/krzyskk/Akademia/pulls/6"},"html":{"href":"https://github.com/krzyskk/Akademia/pull/6"},"issue":{"href":"https://api.github.com/repos/krzyskk/Akademia/issues/6"},"comments":{"href":"https://api.github.com/repos/krzyskk/Akademia/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/krzyskk/Akademia/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/krzyskk/Akademia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/krzyskk/Akademia/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/krzyskk/Akademia/statuses/8d2683e37ddb52d4177ac897f45f5af87013c30a"}},"author_association":"OWNER"}}
{"actor":{"display_login":"bartek-rogalski"}}