{"comment":{"url":"https://api.github.com/repos/grdunn/wdi-fundamentals-rps/comments/11273795","html_url":"https://github.com/grdunn/wdi-fundamentals-rps/commit/16aa25bb0a41f65c1769fbc5da7da5c114d74a81#commitcomment-11273795","id":11273795,"user":{"login":"aadeschamps","id":8422337,"avatar_url":"https://avatars.githubusercontent.com/u/8422337?v=3","gravatar_id":"","url":"https://api.github.com/users/aadeschamps","html_url":"https://github.com/aadeschamps","followers_url":"https://api.github.com/users/aadeschamps/followers","following_url":"https://api.github.com/users/aadeschamps/following{/other_user}","gists_url":"https://api.github.com/users/aadeschamps/gists{/gist_id}","starred_url":"https://api.github.com/users/aadeschamps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aadeschamps/subscriptions","organizations_url":"https://api.github.com/users/aadeschamps/orgs","repos_url":"https://api.github.com/users/aadeschamps/repos","events_url":"https://api.github.com/users/aadeschamps/events{/privacy}","received_events_url":"https://api.github.com/users/aadeschamps/received_events","type":"User","site_admin":false},"position":3,"line":81,"path":"app/js/rockpaperscissors.js","commit_id":"16aa25bb0a41f65c1769fbc5da7da5c114d74a81","created_at":"2015-05-19T23:41:35Z","updated_at":"2015-05-19T23:41:35Z","body":"Adding in the win condition output in here certainly works. In general, its easier to maintain code when all of the functional parts are in one place. This is why functions and modularity are so important. You can easily write this, and the win condition output for the computer, right after the while loop is over. This would put all of the win condition stuff in the same place. This is more of a style though, so what you did was perfectly fine. "}}