/** checkForWin: check board cell-by-cell for "does a win start here?" */
functioncheckForWin(){
/* ??? QUESTION: I've never seen this before, a function nested in a function
what is the value behind doing this? Compared to having it outside of this function? */
function_win(cells){
// Check four cells to see if they're all color of current player
Hey John
I was hoping you might be able to provide some context on this design pattern/syntax that was included in the initial boilerplate for the assignment. This is the first time I've seen a function nested like this and was curious to know if there was a specific reason why it was structured this way compared to having the function declared outside of the existing function.