{"comment":{"url":"https://api.github.com/repos/galefeilian/TTT/comments/17483097","html_url":"https://github.com/galefeilian/TTT/commit/351de0f9de4a1e42426c1f4bfa260f10935c5a7a#commitcomment-17483097","id":17483097,"user":{"login":"jschanker","id":9159008,"avatar_url":"https://avatars.githubusercontent.com/u/9159008?v=3","gravatar_id":"","url":"https://api.github.com/users/jschanker","html_url":"https://github.com/jschanker","followers_url":"https://api.github.com/users/jschanker/followers","following_url":"https://api.github.com/users/jschanker/following{/other_user}","gists_url":"https://api.github.com/users/jschanker/gists{/gist_id}","starred_url":"https://api.github.com/users/jschanker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jschanker/subscriptions","organizations_url":"https://api.github.com/users/jschanker/orgs","repos_url":"https://api.github.com/users/jschanker/repos","events_url":"https://api.github.com/users/jschanker/events{/privacy}","received_events_url":"https://api.github.com/users/jschanker/received_events","type":"User","site_admin":false},"position":70,"line":32,"path":"AIForTicTacToe.js","commit_id":"351de0f9de4a1e42426c1f4bfa260f10935c5a7a","created_at":"2016-05-16T03:01:09Z","updated_at":"2016-05-16T03:01:09Z","body":"Why is the function being called twice for the same Model?  Also, I think this code would be more straightforward to follow if you set a variable to the return value of `AIForTicTacToe` instead of using it to set `d[nextPlayer][copyOfCurrentModel.gameBoard]`.  In this case, why even have the function return a value if you use it only for its side effect of mutating d?"}}