{"action":"created","comment":{"url":"https://api.github.com/repos/czikarito/TDDExamples/pulls/comments/70934955","id":70934955,"diff_hunk":"@@ -0,0 +1,16 @@\n+require 'pry'\n+class RobotMovements\n+  def paths_counter(x, y, visit)\n+    return 0 if visit[x][y]\n+    return 1 if x == 3 && y == 3","path":"robot_movements/lib/robot_movements.rb","position":5,"original_position":5,"commit_id":"c3219f19affe0b2aa5098b3e478ef2eda5c271b5","original_commit_id":"c3219f19affe0b2aa5098b3e478ef2eda5c271b5","user":{"login":"cs3b","id":120829,"avatar_url":"https://avatars.githubusercontent.com/u/120829?v=3","gravatar_id":"","url":"https://api.github.com/users/cs3b","html_url":"https://github.com/cs3b","followers_url":"https://api.github.com/users/cs3b/followers","following_url":"https://api.github.com/users/cs3b/following{/other_user}","gists_url":"https://api.github.com/users/cs3b/gists{/gist_id}","starred_url":"https://api.github.com/users/cs3b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cs3b/subscriptions","organizations_url":"https://api.github.com/users/cs3b/orgs","repos_url":"https://api.github.com/users/cs3b/repos","events_url":"https://api.github.com/users/cs3b/events{/privacy}","received_events_url":"https://api.github.com/users/cs3b/received_events","type":"User","site_admin":false},"body":"what about not mixing data with logic, how you could improve that code ?","created_at":"2016-07-15T08:01:11Z","updated_at":"2016-07-15T08:01:11Z","html_url":"https://github.com/czikarito/TDDExamples/pull/2#discussion_r70934955","pull_request_url":"https://api.github.com/repos/czikarito/TDDExamples/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/czikarito/TDDExamples/pulls/comments/70934955"},"html":{"href":"https://github.com/czikarito/TDDExamples/pull/2#discussion_r70934955"},"pull_request":{"href":"https://api.github.com/repos/czikarito/TDDExamples/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/czikarito/TDDExamples/pulls/2","id":77567214,"html_url":"https://github.com/czikarito/TDDExamples/pull/2","diff_url":"https://github.com/czikarito/TDDExamples/pull/2.diff","patch_url":"https://github.com/czikarito/TDDExamples/pull/2.patch","issue_url":"https://api.github.com/repos/czikarito/TDDExamples/issues/2","number":2,"state":"open","locked":false,"title":"Pending test for Robots Movements","user":{"login":"czikarito","id":15904756,"avatar_url":"https://avatars.githubusercontent.com/u/15904756?v=3","gravatar_id":"","url":"https://api.github.com/users/czikarito","html_url":"https://github.com/czikarito","followers_url":"https://api.github.com/users/czikarito/followers","following_url":"https://api.github.com/users/czikarito/following{/other_user}","gists_url":"https://api.github.com/users/czikarito/gists{/gist_id}","starred_url":"https://api.github.com/users/czikarito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czikarito/subscriptions","organizations_url":"https://api.github.com/users/czikarito/orgs","repos_url":"https://api.github.com/users/czikarito/repos","events_url":"https://api.github.com/users/czikarito/events{/privacy}","received_events_url":"https://api.github.com/users/czikarito/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-15T05:58:03Z","updated_at":"2016-07-15T08:01:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6a1c0027a3b1d0413e9c7660639509a4027e816","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/czikarito/TDDExamples/pulls/2/commits","review_comments_url":"https://api.github.com/repos/czikarito/TDDExamples/pulls/2/comments","review_comment_url":"https://api.github.com/repos/czikarito/TDDExamples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/czikarito/TDDExamples/issues/2/comments","statuses_url":"https://api.github.com/repos/czikarito/TDDExamples/statuses/c3219f19affe0b2aa5098b3e478ef2eda5c271b5","head":{"label":"czikarito:robot_movements","ref":"robot_movements","sha":"c3219f19affe0b2aa5098b3e478ef2eda5c271b5","user":{"login":"czikarito","id":15904756,"avatar_url":"https://avatars.githubusercontent.com/u/15904756?v=3","gravatar_id":"","url":"https://api.github.com/users/czikarito","html_url":"https://github.com/czikarito","followers_url":"https://api.github.com/users/czikarito/followers","following_url":"https://api.github.com/users/czikarito/following{/other_user}","gists_url":"https://api.github.com/users/czikarito/gists{/gist_id}","starred_url":"https://api.github.com/users/czikarito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czikarito/subscriptions","organizations_url":"https://api.github.com/users/czikarito/orgs","repos_url":"https://api.github.com/users/czikarito/repos","events_url":"https://api.github.com/users/czikarito/events{/privacy}","received_events_url":"https://api.github.com/users/czikarito/received_events","type":"User","site_admin":false},"repo":{"id":63327628,"name":"TDDExamples","full_name":"czikarito/TDDExamples","owner":{"login":"czikarito","id":15904756,"avatar_url":"https://avatars.githubusercontent.com/u/15904756?v=3","gravatar_id":"","url":"https://api.github.com/users/czikarito","html_url":"https://github.com/czikarito","followers_url":"https://api.github.com/users/czikarito/followers","following_url":"https://api.github.com/users/czikarito/following{/other_user}","gists_url":"https://api.github.com/users/czikarito/gists{/gist_id}","starred_url":"https://api.github.com/users/czikarito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czikarito/subscriptions","organizations_url":"https://api.github.com/users/czikarito/orgs","repos_url":"https://api.github.com/users/czikarito/repos","events_url":"https://api.github.com/users/czikarito/events{/privacy}","received_events_url":"https://api.github.com/users/czikarito/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/czikarito/TDDExamples","description":null,"fork":false,"url":"https://api.github.com/repos/czikarito/TDDExamples","forks_url":"https://api.github.com/repos/czikarito/TDDExamples/forks","keys_url":"https://api.github.com/repos/czikarito/TDDExamples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/czikarito/TDDExamples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/czikarito/TDDExamples/teams","hooks_url":"https://api.github.com/repos/czikarito/TDDExamples/hooks","issue_events_url":"https://api.github.com/repos/czikarito/TDDExamples/issues/events{/number}","events_url":"https://api.github.com/repos/czikarito/TDDExamples/events","assignees_url":"https://api.github.com/repos/czikarito/TDDExamples/assignees{/user}","branches_url":"https://api.github.com/repos/czikarito/TDDExamples/branches{/branch}","tags_url":"https://api.github.com/repos/czikarito/TDDExamples/tags","blobs_url":"https://api.github.com/repos/czikarito/TDDExamples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/czikarito/TDDExamples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/czikarito/TDDExamples/git/refs{/sha}","trees_url":"https://api.github.com/repos/czikarito/TDDExamples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/czikarito/TDDExamples/statuses/{sha}","languages_url":"https://api.github.com/repos/czikarito/TDDExamples/languages","stargazers_url":"https://api.github.com/repos/czikarito/TDDExamples/stargazers","contributors_url":"https://api.github.com/repos/czikarito/TDDExamples/contributors","subscribers_url":"https://api.github.com/repos/czikarito/TDDExamples/subscribers","subscription_url":"https://api.github.com/repos/czikarito/TDDExamples/subscription","commits_url":"https://api.github.com/repos/czikarito/TDDExamples/commits{/sha}","git_commits_url":"https://api.github.com/repos/czikarito/TDDExamples/git/commits{/sha}","comments_url":"https://api.github.com/repos/czikarito/TDDExamples/comments{/number}","issue_comment_url":"https://api.github.com/repos/czikarito/TDDExamples/issues/comments{/number}","contents_url":"https://api.github.com/repos/czikarito/TDDExamples/contents/{+path}","compare_url":"https://api.github.com/repos/czikarito/TDDExamples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/czikarito/TDDExamples/merges","archive_url":"https://api.github.com/repos/czikarito/TDDExamples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/czikarito/TDDExamples/downloads","issues_url":"https://api.github.com/repos/czikarito/TDDExamples/issues{/number}","pulls_url":"https://api.github.com/repos/czikarito/TDDExamples/pulls{/number}","milestones_url":"https://api.github.com/repos/czikarito/TDDExamples/milestones{/number}","notifications_url":"https://api.github.com/repos/czikarito/TDDExamples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/czikarito/TDDExamples/labels{/name}","releases_url":"https://api.github.com/repos/czikarito/TDDExamples/releases{/id}","deployments_url":"https://api.github.com/repos/czikarito/TDDExamples/deployments","created_at":"2016-07-14T10:36:44Z","updated_at":"2016-07-14T10:36:44Z","pushed_at":"2016-07-15T07:41:42Z","git_url":"git://github.com/czikarito/TDDExamples.git","ssh_url":"git@github.com:czikarito/TDDExamples.git","clone_url":"https://github.com/czikarito/TDDExamples.git","svn_url":"https://github.com/czikarito/TDDExamples","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"fizz_buzz"}},"base":{"label":"czikarito:fizz_buzz","ref":"fizz_buzz","sha":"9ac3237f98e7b35f27ca7f1817ee3355d0c8cbed","user":{"login":"czikarito","id":15904756,"avatar_url":"https://avatars.githubusercontent.com/u/15904756?v=3","gravatar_id":"","url":"https://api.github.com/users/czikarito","html_url":"https://github.com/czikarito","followers_url":"https://api.github.com/users/czikarito/followers","following_url":"https://api.github.com/users/czikarito/following{/other_user}","gists_url":"https://api.github.com/users/czikarito/gists{/gist_id}","starred_url":"https://api.github.com/users/czikarito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czikarito/subscriptions","organizations_url":"https://api.github.com/users/czikarito/orgs","repos_url":"https://api.github.com/users/czikarito/repos","events_url":"https://api.github.com/users/czikarito/events{/privacy}","received_events_url":"https://api.github.com/users/czikarito/received_events","type":"User","site_admin":false},"repo":{"id":63327628,"name":"TDDExamples","full_name":"czikarito/TDDExamples","owner":{"login":"czikarito","id":15904756,"avatar_url":"https://avatars.githubusercontent.com/u/15904756?v=3","gravatar_id":"","url":"https://api.github.com/users/czikarito","html_url":"https://github.com/czikarito","followers_url":"https://api.github.com/users/czikarito/followers","following_url":"https://api.github.com/users/czikarito/following{/other_user}","gists_url":"https://api.github.com/users/czikarito/gists{/gist_id}","starred_url":"https://api.github.com/users/czikarito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czikarito/subscriptions","organizations_url":"https://api.github.com/users/czikarito/orgs","repos_url":"https://api.github.com/users/czikarito/repos","events_url":"https://api.github.com/users/czikarito/events{/privacy}","received_events_url":"https://api.github.com/users/czikarito/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/czikarito/TDDExamples","description":null,"fork":false,"url":"https://api.github.com/repos/czikarito/TDDExamples","forks_url":"https://api.github.com/repos/czikarito/TDDExamples/forks","keys_url":"https://api.github.com/repos/czikarito/TDDExamples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/czikarito/TDDExamples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/czikarito/TDDExamples/teams","hooks_url":"https://api.github.com/repos/czikarito/TDDExamples/hooks","issue_events_url":"https://api.github.com/repos/czikarito/TDDExamples/issues/events{/number}","events_url":"https://api.github.com/repos/czikarito/TDDExamples/events","assignees_url":"https://api.github.com/repos/czikarito/TDDExamples/assignees{/user}","branches_url":"https://api.github.com/repos/czikarito/TDDExamples/branches{/branch}","tags_url":"https://api.github.com/repos/czikarito/TDDExamples/tags","blobs_url":"https://api.github.com/repos/czikarito/TDDExamples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/czikarito/TDDExamples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/czikarito/TDDExamples/git/refs{/sha}","trees_url":"https://api.github.com/repos/czikarito/TDDExamples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/czikarito/TDDExamples/statuses/{sha}","languages_url":"https://api.github.com/repos/czikarito/TDDExamples/languages","stargazers_url":"https://api.github.com/repos/czikarito/TDDExamples/stargazers","contributors_url":"https://api.github.com/repos/czikarito/TDDExamples/contributors","subscribers_url":"https://api.github.com/repos/czikarito/TDDExamples/subscribers","subscription_url":"https://api.github.com/repos/czikarito/TDDExamples/subscription","commits_url":"https://api.github.com/repos/czikarito/TDDExamples/commits{/sha}","git_commits_url":"https://api.github.com/repos/czikarito/TDDExamples/git/commits{/sha}","comments_url":"https://api.github.com/repos/czikarito/TDDExamples/comments{/number}","issue_comment_url":"https://api.github.com/repos/czikarito/TDDExamples/issues/comments{/number}","contents_url":"https://api.github.com/repos/czikarito/TDDExamples/contents/{+path}","compare_url":"https://api.github.com/repos/czikarito/TDDExamples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/czikarito/TDDExamples/merges","archive_url":"https://api.github.com/repos/czikarito/TDDExamples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/czikarito/TDDExamples/downloads","issues_url":"https://api.github.com/repos/czikarito/TDDExamples/issues{/number}","pulls_url":"https://api.github.com/repos/czikarito/TDDExamples/pulls{/number}","milestones_url":"https://api.github.com/repos/czikarito/TDDExamples/milestones{/number}","notifications_url":"https://api.github.com/repos/czikarito/TDDExamples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/czikarito/TDDExamples/labels{/name}","releases_url":"https://api.github.com/repos/czikarito/TDDExamples/releases{/id}","deployments_url":"https://api.github.com/repos/czikarito/TDDExamples/deployments","created_at":"2016-07-14T10:36:44Z","updated_at":"2016-07-14T10:36:44Z","pushed_at":"2016-07-15T07:41:42Z","git_url":"git://github.com/czikarito/TDDExamples.git","ssh_url":"git@github.com:czikarito/TDDExamples.git","clone_url":"https://github.com/czikarito/TDDExamples.git","svn_url":"https://github.com/czikarito/TDDExamples","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"fizz_buzz"}},"_links":{"self":{"href":"https://api.github.com/repos/czikarito/TDDExamples/pulls/2"},"html":{"href":"https://github.com/czikarito/TDDExamples/pull/2"},"issue":{"href":"https://api.github.com/repos/czikarito/TDDExamples/issues/2"},"comments":{"href":"https://api.github.com/repos/czikarito/TDDExamples/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/czikarito/TDDExamples/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/czikarito/TDDExamples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/czikarito/TDDExamples/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/czikarito/TDDExamples/statuses/c3219f19affe0b2aa5098b3e478ef2eda5c271b5"}}}}
{"actor":{"display_login":"cs3b"}}