{"action":"created","comment":{"url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/pulls/comments/75628221","id":75628221,"diff_hunk":"@@ -7,34 +7,47 @@ def initialize\n     @x = 0\n     @y = 0\n     @facing = :north\n+    @movements = []\n   end\n \n   def place(x,y,facing)\n     raise InvalidPositionError.new(\"Invalid Position, #{x}, #{y}, #{facing}\") if !(x.between?(0,4)) || !(y.between?(0,4))\n     @x = x\n     @y = y\n     @facing = facing\n+    @movements.replace([\"PLACE #{@x}, #{@y}, #{@facing.to_s.upcase}\"])\n   end\n \n   def move\n     if (@facing == :north) && (@y < 4)\n       @y =+ 1\n+      @movements << \"MOVE\"\n     elsif (@facing == :south) && (@y > 0)\n       @y =- 1\n+      @movements << \"MOVE\"\n     elsif (@facing == :east) && (@x < 4)\n       @x =+ 1\n+      @movements << \"MOVE\"\n     elsif (@facing == :west) && (@x > 0)\n       @x =- 1\n+      @movements << \"MOVE\"\n     end\n   end\n \n end\n \n \n-# robot = ToyRobot.new\n-# puts robot.x\n-# puts robot.y\n-# puts robot.facing\n+robot = ToyRobot.new","path":"toy_robot.rb","position":38,"original_position":38,"commit_id":"0b1790c3102fbba21ff9597763b05bee2ff9e4a9","original_commit_id":"0b1790c3102fbba21ff9597763b05bee2ff9e4a9","user":{"login":"itinsley","id":663944,"avatar_url":"https://avatars.githubusercontent.com/u/663944?v=3","gravatar_id":"","url":"https://api.github.com/users/itinsley","html_url":"https://github.com/itinsley","followers_url":"https://api.github.com/users/itinsley/followers","following_url":"https://api.github.com/users/itinsley/following{/other_user}","gists_url":"https://api.github.com/users/itinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/itinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itinsley/subscriptions","organizations_url":"https://api.github.com/users/itinsley/orgs","repos_url":"https://api.github.com/users/itinsley/repos","events_url":"https://api.github.com/users/itinsley/events{/privacy}","received_events_url":"https://api.github.com/users/itinsley/received_events","type":"User","site_admin":false},"body":"put this code somewhere else. You should get used to using your Tests as your test harness. I understand this code is helpful but put it in a sample_code.rb or something.","created_at":"2016-08-22T07:23:54Z","updated_at":"2016-08-22T07:23:54Z","html_url":"https://github.com/KatherinaFatiguso/ToyRobotBasic/pull/7#discussion_r75628221","pull_request_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/pulls/comments/75628221"},"html":{"href":"https://github.com/KatherinaFatiguso/ToyRobotBasic/pull/7#discussion_r75628221"},"pull_request":{"href":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/pulls/7","id":82142144,"html_url":"https://github.com/KatherinaFatiguso/ToyRobotBasic/pull/7","diff_url":"https://github.com/KatherinaFatiguso/ToyRobotBasic/pull/7.diff","patch_url":"https://github.com/KatherinaFatiguso/ToyRobotBasic/pull/7.patch","issue_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/issues/7","number":7,"state":"open","locked":false,"title":"Movements","user":{"login":"KatherinaFatiguso","id":11656509,"avatar_url":"https://avatars.githubusercontent.com/u/11656509?v=3","gravatar_id":"","url":"https://api.github.com/users/KatherinaFatiguso","html_url":"https://github.com/KatherinaFatiguso","followers_url":"https://api.github.com/users/KatherinaFatiguso/followers","following_url":"https://api.github.com/users/KatherinaFatiguso/following{/other_user}","gists_url":"https://api.github.com/users/KatherinaFatiguso/gists{/gist_id}","starred_url":"https://api.github.com/users/KatherinaFatiguso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KatherinaFatiguso/subscriptions","organizations_url":"https://api.github.com/users/KatherinaFatiguso/orgs","repos_url":"https://api.github.com/users/KatherinaFatiguso/repos","events_url":"https://api.github.com/users/KatherinaFatiguso/events{/privacy}","received_events_url":"https://api.github.com/users/KatherinaFatiguso/received_events","type":"User","site_admin":false},"body":"Hi @itinsley \r\nPlease review my tests for movements.\r\nIf I want to add test to 'place' function, should I move to 'facing' branch and work in there or create a new branch?\r\nI also just realised that at the last sentence in the spec, the origin is at (0,0,EAST) not (0,0,NORTH). Can I change the class initializer again (sorry)?\r\nThank you","created_at":"2016-08-22T06:57:19Z","updated_at":"2016-08-22T07:23:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10b0d52c51b5d52bda37c38fe06e25bc1910c204","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/pulls/7/commits","review_comments_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/pulls/7/comments","review_comment_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/issues/7/comments","statuses_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/statuses/0b1790c3102fbba21ff9597763b05bee2ff9e4a9","head":{"label":"KatherinaFatiguso:movements","ref":"movements","sha":"0b1790c3102fbba21ff9597763b05bee2ff9e4a9","user":{"login":"KatherinaFatiguso","id":11656509,"avatar_url":"https://avatars.githubusercontent.com/u/11656509?v=3","gravatar_id":"","url":"https://api.github.com/users/KatherinaFatiguso","html_url":"https://github.com/KatherinaFatiguso","followers_url":"https://api.github.com/users/KatherinaFatiguso/followers","following_url":"https://api.github.com/users/KatherinaFatiguso/following{/other_user}","gists_url":"https://api.github.com/users/KatherinaFatiguso/gists{/gist_id}","starred_url":"https://api.github.com/users/KatherinaFatiguso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KatherinaFatiguso/subscriptions","organizations_url":"https://api.github.com/users/KatherinaFatiguso/orgs","repos_url":"https://api.github.com/users/KatherinaFatiguso/repos","events_url":"https://api.github.com/users/KatherinaFatiguso/events{/privacy}","received_events_url":"https://api.github.com/users/KatherinaFatiguso/received_events","type":"User","site_admin":false},"repo":{"id":65161365,"name":"ToyRobotBasic","full_name":"KatherinaFatiguso/ToyRobotBasic","owner":{"login":"KatherinaFatiguso","id":11656509,"avatar_url":"https://avatars.githubusercontent.com/u/11656509?v=3","gravatar_id":"","url":"https://api.github.com/users/KatherinaFatiguso","html_url":"https://github.com/KatherinaFatiguso","followers_url":"https://api.github.com/users/KatherinaFatiguso/followers","following_url":"https://api.github.com/users/KatherinaFatiguso/following{/other_user}","gists_url":"https://api.github.com/users/KatherinaFatiguso/gists{/gist_id}","starred_url":"https://api.github.com/users/KatherinaFatiguso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KatherinaFatiguso/subscriptions","organizations_url":"https://api.github.com/users/KatherinaFatiguso/orgs","repos_url":"https://api.github.com/users/KatherinaFatiguso/repos","events_url":"https://api.github.com/users/KatherinaFatiguso/events{/privacy}","received_events_url":"https://api.github.com/users/KatherinaFatiguso/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KatherinaFatiguso/ToyRobotBasic","description":null,"fork":false,"url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic","forks_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/forks","keys_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/teams","hooks_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/hooks","issue_events_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/issues/events{/number}","events_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/events","assignees_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/assignees{/user}","branches_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/branches{/branch}","tags_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/tags","blobs_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/git/refs{/sha}","trees_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/statuses/{sha}","languages_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/languages","stargazers_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/stargazers","contributors_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/contributors","subscribers_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/subscribers","subscription_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/subscription","commits_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/commits{/sha}","git_commits_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/git/commits{/sha}","comments_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/comments{/number}","issue_comment_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/issues/comments{/number}","contents_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/contents/{+path}","compare_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/merges","archive_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/downloads","issues_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/issues{/number}","pulls_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/pulls{/number}","milestones_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/milestones{/number}","notifications_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/labels{/name}","releases_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/releases{/id}","deployments_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/deployments","created_at":"2016-08-08T00:48:54Z","updated_at":"2016-08-08T01:53:30Z","pushed_at":"2016-08-22T06:57:19Z","git_url":"git://github.com/KatherinaFatiguso/ToyRobotBasic.git","ssh_url":"git@github.com:KatherinaFatiguso/ToyRobotBasic.git","clone_url":"https://github.com/KatherinaFatiguso/ToyRobotBasic.git","svn_url":"https://github.com/KatherinaFatiguso/ToyRobotBasic","homepage":null,"size":773,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"KatherinaFatiguso:master","ref":"master","sha":"f8c4c5496a2c76b54302dd3827eb8f284fdc454f","user":{"login":"KatherinaFatiguso","id":11656509,"avatar_url":"https://avatars.githubusercontent.com/u/11656509?v=3","gravatar_id":"","url":"https://api.github.com/users/KatherinaFatiguso","html_url":"https://github.com/KatherinaFatiguso","followers_url":"https://api.github.com/users/KatherinaFatiguso/followers","following_url":"https://api.github.com/users/KatherinaFatiguso/following{/other_user}","gists_url":"https://api.github.com/users/KatherinaFatiguso/gists{/gist_id}","starred_url":"https://api.github.com/users/KatherinaFatiguso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KatherinaFatiguso/subscriptions","organizations_url":"https://api.github.com/users/KatherinaFatiguso/orgs","repos_url":"https://api.github.com/users/KatherinaFatiguso/repos","events_url":"https://api.github.com/users/KatherinaFatiguso/events{/privacy}","received_events_url":"https://api.github.com/users/KatherinaFatiguso/received_events","type":"User","site_admin":false},"repo":{"id":65161365,"name":"ToyRobotBasic","full_name":"KatherinaFatiguso/ToyRobotBasic","owner":{"login":"KatherinaFatiguso","id":11656509,"avatar_url":"https://avatars.githubusercontent.com/u/11656509?v=3","gravatar_id":"","url":"https://api.github.com/users/KatherinaFatiguso","html_url":"https://github.com/KatherinaFatiguso","followers_url":"https://api.github.com/users/KatherinaFatiguso/followers","following_url":"https://api.github.com/users/KatherinaFatiguso/following{/other_user}","gists_url":"https://api.github.com/users/KatherinaFatiguso/gists{/gist_id}","starred_url":"https://api.github.com/users/KatherinaFatiguso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KatherinaFatiguso/subscriptions","organizations_url":"https://api.github.com/users/KatherinaFatiguso/orgs","repos_url":"https://api.github.com/users/KatherinaFatiguso/repos","events_url":"https://api.github.com/users/KatherinaFatiguso/events{/privacy}","received_events_url":"https://api.github.com/users/KatherinaFatiguso/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KatherinaFatiguso/ToyRobotBasic","description":null,"fork":false,"url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic","forks_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/forks","keys_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/teams","hooks_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/hooks","issue_events_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/issues/events{/number}","events_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/events","assignees_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/assignees{/user}","branches_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/branches{/branch}","tags_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/tags","blobs_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/git/refs{/sha}","trees_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/statuses/{sha}","languages_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/languages","stargazers_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/stargazers","contributors_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/contributors","subscribers_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/subscribers","subscription_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/subscription","commits_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/commits{/sha}","git_commits_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/git/commits{/sha}","comments_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/comments{/number}","issue_comment_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/issues/comments{/number}","contents_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/contents/{+path}","compare_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/merges","archive_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/downloads","issues_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/issues{/number}","pulls_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/pulls{/number}","milestones_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/milestones{/number}","notifications_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/labels{/name}","releases_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/releases{/id}","deployments_url":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/deployments","created_at":"2016-08-08T00:48:54Z","updated_at":"2016-08-08T01:53:30Z","pushed_at":"2016-08-22T06:57:19Z","git_url":"git://github.com/KatherinaFatiguso/ToyRobotBasic.git","ssh_url":"git@github.com:KatherinaFatiguso/ToyRobotBasic.git","clone_url":"https://github.com/KatherinaFatiguso/ToyRobotBasic.git","svn_url":"https://github.com/KatherinaFatiguso/ToyRobotBasic","homepage":null,"size":773,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/pulls/7"},"html":{"href":"https://github.com/KatherinaFatiguso/ToyRobotBasic/pull/7"},"issue":{"href":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/issues/7"},"comments":{"href":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/KatherinaFatiguso/ToyRobotBasic/statuses/0b1790c3102fbba21ff9597763b05bee2ff9e4a9"}}}}
{"actor":{"display_login":"itinsley"}}