{"action":"created","comment":{"url":"https://api.github.com/repos/nau-comp3320/homework04/pulls/comments/30241673","id":30241673,"diff_hunk":"@@ -135,10 +142,13 @@\n %\n % Ensure that the tests pass with no warnings.\n %\n+path_to(Start,End, Route):- connected(Start, End, [],R), rev(R, [], Route).\n+connected(X,X,T,[X|T).\n+connected(Place, End, T, R):- corridor(Place, Next), mem(Next,T), connected(Next,End,[Place|t],R).","path":"maze.pl","position":73,"original_position":73,"commit_id":"47689c5e866b4b326d6a237a522d2052b1a8ad70","original_commit_id":"47689c5e866b4b326d6a237a522d2052b1a8ad70","user":{"login":"sattvik","id":152491,"avatar_url":"https://avatars.githubusercontent.com/u/152491?v=3","gravatar_id":"","url":"https://api.github.com/users/sattvik","html_url":"https://github.com/sattvik","followers_url":"https://api.github.com/users/sattvik/followers","following_url":"https://api.github.com/users/sattvik/following{/other_user}","gists_url":"https://api.github.com/users/sattvik/gists{/gist_id}","starred_url":"https://api.github.com/users/sattvik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sattvik/subscriptions","organizations_url":"https://api.github.com/users/sattvik/orgs","repos_url":"https://api.github.com/users/sattvik/repos","events_url":"https://api.github.com/users/sattvik/events{/privacy}","received_events_url":"https://api.github.com/users/sattvik/received_events","type":"User","site_admin":false},"body":"It would have been a little less confusing if the path_to helper was not named connected, as we already have that as a preddicate.\r\n\r\nIn any case, there is a syntax error here (the unbalance braces).  Also, I think the atom 't' should have been the variable 'T'.  You also did not use negate the membership test.","created_at":"2015-05-13T15:20:28Z","updated_at":"2015-05-13T15:20:28Z","html_url":"https://github.com/nau-comp3320/homework04/pull/4#discussion_r30241673","pull_request_url":"https://api.github.com/repos/nau-comp3320/homework04/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/nau-comp3320/homework04/pulls/comments/30241673"},"html":{"href":"https://github.com/nau-comp3320/homework04/pull/4#discussion_r30241673"},"pull_request":{"href":"https://api.github.com/repos/nau-comp3320/homework04/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/nau-comp3320/homework04/pulls/4","id":32357815,"html_url":"https://github.com/nau-comp3320/homework04/pull/4","diff_url":"https://github.com/nau-comp3320/homework04/pull/4.diff","patch_url":"https://github.com/nau-comp3320/homework04/pull/4.patch","issue_url":"https://api.github.com/repos/nau-comp3320/homework04/issues/4","number":4,"state":"open","locked":false,"title":"assignment04","user":{"login":"mtkilic","id":7682226,"avatar_url":"https://avatars.githubusercontent.com/u/7682226?v=3","gravatar_id":"","url":"https://api.github.com/users/mtkilic","html_url":"https://github.com/mtkilic","followers_url":"https://api.github.com/users/mtkilic/followers","following_url":"https://api.github.com/users/mtkilic/following{/other_user}","gists_url":"https://api.github.com/users/mtkilic/gists{/gist_id}","starred_url":"https://api.github.com/users/mtkilic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtkilic/subscriptions","organizations_url":"https://api.github.com/users/mtkilic/orgs","repos_url":"https://api.github.com/users/mtkilic/repos","events_url":"https://api.github.com/users/mtkilic/events{/privacy}","received_events_url":"https://api.github.com/users/mtkilic/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-31T19:38:43Z","updated_at":"2015-05-13T15:20:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47764630c52af8d7f02f757811beed66696ca422","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nau-comp3320/homework04/pulls/4/commits","review_comments_url":"https://api.github.com/repos/nau-comp3320/homework04/pulls/4/comments","review_comment_url":"https://api.github.com/repos/nau-comp3320/homework04/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nau-comp3320/homework04/issues/4/comments","statuses_url":"https://api.github.com/repos/nau-comp3320/homework04/statuses/47689c5e866b4b326d6a237a522d2052b1a8ad70","head":{"label":"mtkilic:master","ref":"master","sha":"47689c5e866b4b326d6a237a522d2052b1a8ad70","user":{"login":"mtkilic","id":7682226,"avatar_url":"https://avatars.githubusercontent.com/u/7682226?v=3","gravatar_id":"","url":"https://api.github.com/users/mtkilic","html_url":"https://github.com/mtkilic","followers_url":"https://api.github.com/users/mtkilic/followers","following_url":"https://api.github.com/users/mtkilic/following{/other_user}","gists_url":"https://api.github.com/users/mtkilic/gists{/gist_id}","starred_url":"https://api.github.com/users/mtkilic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtkilic/subscriptions","organizations_url":"https://api.github.com/users/mtkilic/orgs","repos_url":"https://api.github.com/users/mtkilic/repos","events_url":"https://api.github.com/users/mtkilic/events{/privacy}","received_events_url":"https://api.github.com/users/mtkilic/received_events","type":"User","site_admin":false},"repo":{"id":33204672,"name":"homework04","full_name":"mtkilic/homework04","owner":{"login":"mtkilic","id":7682226,"avatar_url":"https://avatars.githubusercontent.com/u/7682226?v=3","gravatar_id":"","url":"https://api.github.com/users/mtkilic","html_url":"https://github.com/mtkilic","followers_url":"https://api.github.com/users/mtkilic/followers","following_url":"https://api.github.com/users/mtkilic/following{/other_user}","gists_url":"https://api.github.com/users/mtkilic/gists{/gist_id}","starred_url":"https://api.github.com/users/mtkilic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtkilic/subscriptions","organizations_url":"https://api.github.com/users/mtkilic/orgs","repos_url":"https://api.github.com/users/mtkilic/repos","events_url":"https://api.github.com/users/mtkilic/events{/privacy}","received_events_url":"https://api.github.com/users/mtkilic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mtkilic/homework04","description":"Solving a maze with Prolog","fork":true,"url":"https://api.github.com/repos/mtkilic/homework04","forks_url":"https://api.github.com/repos/mtkilic/homework04/forks","keys_url":"https://api.github.com/repos/mtkilic/homework04/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mtkilic/homework04/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mtkilic/homework04/teams","hooks_url":"https://api.github.com/repos/mtkilic/homework04/hooks","issue_events_url":"https://api.github.com/repos/mtkilic/homework04/issues/events{/number}","events_url":"https://api.github.com/repos/mtkilic/homework04/events","assignees_url":"https://api.github.com/repos/mtkilic/homework04/assignees{/user}","branches_url":"https://api.github.com/repos/mtkilic/homework04/branches{/branch}","tags_url":"https://api.github.com/repos/mtkilic/homework04/tags","blobs_url":"https://api.github.com/repos/mtkilic/homework04/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mtkilic/homework04/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mtkilic/homework04/git/refs{/sha}","trees_url":"https://api.github.com/repos/mtkilic/homework04/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mtkilic/homework04/statuses/{sha}","languages_url":"https://api.github.com/repos/mtkilic/homework04/languages","stargazers_url":"https://api.github.com/repos/mtkilic/homework04/stargazers","contributors_url":"https://api.github.com/repos/mtkilic/homework04/contributors","subscribers_url":"https://api.github.com/repos/mtkilic/homework04/subscribers","subscription_url":"https://api.github.com/repos/mtkilic/homework04/subscription","commits_url":"https://api.github.com/repos/mtkilic/homework04/commits{/sha}","git_commits_url":"https://api.github.com/repos/mtkilic/homework04/git/commits{/sha}","comments_url":"https://api.github.com/repos/mtkilic/homework04/comments{/number}","issue_comment_url":"https://api.github.com/repos/mtkilic/homework04/issues/comments{/number}","contents_url":"https://api.github.com/repos/mtkilic/homework04/contents/{+path}","compare_url":"https://api.github.com/repos/mtkilic/homework04/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mtkilic/homework04/merges","archive_url":"https://api.github.com/repos/mtkilic/homework04/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mtkilic/homework04/downloads","issues_url":"https://api.github.com/repos/mtkilic/homework04/issues{/number}","pulls_url":"https://api.github.com/repos/mtkilic/homework04/pulls{/number}","milestones_url":"https://api.github.com/repos/mtkilic/homework04/milestones{/number}","notifications_url":"https://api.github.com/repos/mtkilic/homework04/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mtkilic/homework04/labels{/name}","releases_url":"https://api.github.com/repos/mtkilic/homework04/releases{/id}","created_at":"2015-03-31T19:15:25Z","updated_at":"2015-03-31T19:33:31Z","pushed_at":"2015-03-31T19:33:31Z","git_url":"git://github.com/mtkilic/homework04.git","ssh_url":"git@github.com:mtkilic/homework04.git","clone_url":"https://github.com/mtkilic/homework04.git","svn_url":"https://github.com/mtkilic/homework04","homepage":"","size":86,"stargazers_count":0,"watchers_count":0,"language":"Prolog","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":"nau-comp3320:master","ref":"master","sha":"b712e8df0e96cb0da2fae44d992f87b78138e808","user":{"login":"nau-comp3320","id":10574410,"avatar_url":"https://avatars.githubusercontent.com/u/10574410?v=3","gravatar_id":"","url":"https://api.github.com/users/nau-comp3320","html_url":"https://github.com/nau-comp3320","followers_url":"https://api.github.com/users/nau-comp3320/followers","following_url":"https://api.github.com/users/nau-comp3320/following{/other_user}","gists_url":"https://api.github.com/users/nau-comp3320/gists{/gist_id}","starred_url":"https://api.github.com/users/nau-comp3320/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nau-comp3320/subscriptions","organizations_url":"https://api.github.com/users/nau-comp3320/orgs","repos_url":"https://api.github.com/users/nau-comp3320/repos","events_url":"https://api.github.com/users/nau-comp3320/events{/privacy}","received_events_url":"https://api.github.com/users/nau-comp3320/received_events","type":"Organization","site_admin":false},"repo":{"id":31698052,"name":"homework04","full_name":"nau-comp3320/homework04","owner":{"login":"nau-comp3320","id":10574410,"avatar_url":"https://avatars.githubusercontent.com/u/10574410?v=3","gravatar_id":"","url":"https://api.github.com/users/nau-comp3320","html_url":"https://github.com/nau-comp3320","followers_url":"https://api.github.com/users/nau-comp3320/followers","following_url":"https://api.github.com/users/nau-comp3320/following{/other_user}","gists_url":"https://api.github.com/users/nau-comp3320/gists{/gist_id}","starred_url":"https://api.github.com/users/nau-comp3320/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nau-comp3320/subscriptions","organizations_url":"https://api.github.com/users/nau-comp3320/orgs","repos_url":"https://api.github.com/users/nau-comp3320/repos","events_url":"https://api.github.com/users/nau-comp3320/events{/privacy}","received_events_url":"https://api.github.com/users/nau-comp3320/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nau-comp3320/homework04","description":"Solving a maze with Prolog","fork":false,"url":"https://api.github.com/repos/nau-comp3320/homework04","forks_url":"https://api.github.com/repos/nau-comp3320/homework04/forks","keys_url":"https://api.github.com/repos/nau-comp3320/homework04/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nau-comp3320/homework04/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nau-comp3320/homework04/teams","hooks_url":"https://api.github.com/repos/nau-comp3320/homework04/hooks","issue_events_url":"https://api.github.com/repos/nau-comp3320/homework04/issues/events{/number}","events_url":"https://api.github.com/repos/nau-comp3320/homework04/events","assignees_url":"https://api.github.com/repos/nau-comp3320/homework04/assignees{/user}","branches_url":"https://api.github.com/repos/nau-comp3320/homework04/branches{/branch}","tags_url":"https://api.github.com/repos/nau-comp3320/homework04/tags","blobs_url":"https://api.github.com/repos/nau-comp3320/homework04/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nau-comp3320/homework04/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nau-comp3320/homework04/git/refs{/sha}","trees_url":"https://api.github.com/repos/nau-comp3320/homework04/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nau-comp3320/homework04/statuses/{sha}","languages_url":"https://api.github.com/repos/nau-comp3320/homework04/languages","stargazers_url":"https://api.github.com/repos/nau-comp3320/homework04/stargazers","contributors_url":"https://api.github.com/repos/nau-comp3320/homework04/contributors","subscribers_url":"https://api.github.com/repos/nau-comp3320/homework04/subscribers","subscription_url":"https://api.github.com/repos/nau-comp3320/homework04/subscription","commits_url":"https://api.github.com/repos/nau-comp3320/homework04/commits{/sha}","git_commits_url":"https://api.github.com/repos/nau-comp3320/homework04/git/commits{/sha}","comments_url":"https://api.github.com/repos/nau-comp3320/homework04/comments{/number}","issue_comment_url":"https://api.github.com/repos/nau-comp3320/homework04/issues/comments{/number}","contents_url":"https://api.github.com/repos/nau-comp3320/homework04/contents/{+path}","compare_url":"https://api.github.com/repos/nau-comp3320/homework04/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nau-comp3320/homework04/merges","archive_url":"https://api.github.com/repos/nau-comp3320/homework04/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nau-comp3320/homework04/downloads","issues_url":"https://api.github.com/repos/nau-comp3320/homework04/issues{/number}","pulls_url":"https://api.github.com/repos/nau-comp3320/homework04/pulls{/number}","milestones_url":"https://api.github.com/repos/nau-comp3320/homework04/milestones{/number}","notifications_url":"https://api.github.com/repos/nau-comp3320/homework04/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nau-comp3320/homework04/labels{/name}","releases_url":"https://api.github.com/repos/nau-comp3320/homework04/releases{/id}","created_at":"2015-03-05T05:47:47Z","updated_at":"2015-03-09T13:12:58Z","pushed_at":"2015-04-01T04:24:56Z","git_url":"git://github.com/nau-comp3320/homework04.git","ssh_url":"git@github.com:nau-comp3320/homework04.git","clone_url":"https://github.com/nau-comp3320/homework04.git","svn_url":"https://github.com/nau-comp3320/homework04","homepage":"","size":299,"stargazers_count":0,"watchers_count":0,"language":"Prolog","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":5,"forks":6,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nau-comp3320/homework04/pulls/4"},"html":{"href":"https://github.com/nau-comp3320/homework04/pull/4"},"issue":{"href":"https://api.github.com/repos/nau-comp3320/homework04/issues/4"},"comments":{"href":"https://api.github.com/repos/nau-comp3320/homework04/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/nau-comp3320/homework04/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/nau-comp3320/homework04/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nau-comp3320/homework04/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/nau-comp3320/homework04/statuses/47689c5e866b4b326d6a237a522d2052b1a8ad70"}}}}