{"action":"created","issue":{"url":"https://api.github.com/repos/ssochet/PCS-Class/issues/1","repository_url":"https://api.github.com/repos/ssochet/PCS-Class","labels_url":"https://api.github.com/repos/ssochet/PCS-Class/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ssochet/PCS-Class/issues/1/comments","events_url":"https://api.github.com/repos/ssochet/PCS-Class/issues/1/events","html_url":"https://github.com/ssochet/PCS-Class/issues/1","id":295173605,"number":1,"title":"What is  the 'Fori' doing?","user":{"login":"techhasid","id":21052165,"avatar_url":"https://avatars0.githubusercontent.com/u/21052165?v=4","gravatar_id":"","url":"https://api.github.com/users/techhasid","html_url":"https://github.com/techhasid","followers_url":"https://api.github.com/users/techhasid/followers","following_url":"https://api.github.com/users/techhasid/following{/other_user}","gists_url":"https://api.github.com/users/techhasid/gists{/gist_id}","starred_url":"https://api.github.com/users/techhasid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techhasid/subscriptions","organizations_url":"https://api.github.com/users/techhasid/orgs","repos_url":"https://api.github.com/users/techhasid/repos","events_url":"https://api.github.com/users/techhasid/events{/privacy}","received_events_url":"https://api.github.com/users/techhasid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-07T15:11:32Z","updated_at":"2018-02-08T02:09:04Z","closed_at":null,"author_association":"NONE","body":"https://github.com/ssochet/PCS-Class/blob/802676f0c950782cefa8ee84f2c1236dc95b4415/JavaScript/HW_97_snake_ball/snake/snake.js#L128\r\n\r\nI'm wondering why you needed the Fori statement on line 128, and the i-- on line 136. \r\nAlso, the fori is set to <1, which means that it will happen only once anyway. "},"comment":{"url":"https://api.github.com/repos/ssochet/PCS-Class/issues/comments/363979009","html_url":"https://github.com/ssochet/PCS-Class/issues/1#issuecomment-363979009","issue_url":"https://api.github.com/repos/ssochet/PCS-Class/issues/1","id":363979009,"user":{"login":"ssochet","id":26887125,"avatar_url":"https://avatars2.githubusercontent.com/u/26887125?v=4","gravatar_id":"","url":"https://api.github.com/users/ssochet","html_url":"https://github.com/ssochet","followers_url":"https://api.github.com/users/ssochet/followers","following_url":"https://api.github.com/users/ssochet/following{/other_user}","gists_url":"https://api.github.com/users/ssochet/gists{/gist_id}","starred_url":"https://api.github.com/users/ssochet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssochet/subscriptions","organizations_url":"https://api.github.com/users/ssochet/orgs","repos_url":"https://api.github.com/users/ssochet/repos","events_url":"https://api.github.com/users/ssochet/events{/privacy}","received_events_url":"https://api.github.com/users/ssochet/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T02:09:04Z","updated_at":"2018-02-08T02:09:04Z","author_association":"OWNER","body":"If the apple's x and y landed on the snake then `i--`, `i` will be `0`,  which will cause the `for` loop to run again. This in turn will choose a new x and y for the apple. Otherwise, as you said the regular `for` loop behavior of `i++` will occur and `i` will be 1 so the `for` will end."}}
{"actor":{"display_login":"ssochet"}}