makemove(copyplayerletteriif iswinner(copyplayerletter)return nextthe code will simulate the human player moving on each of the spaces the code is similar to the previous loop except the player' letter is put on the board copy if the iswinner(function shows that the player would win with this movethen the computer will return that same move to block this from happening if the human player cannot win in one more movethe for loop will eventually finish and execution continues to line checking the cornercenterand side spaces (in that order try to take one of the cornersif they are free move chooserandommovefromlist(board[ ]if move !nonereturn move the call to chooserandommovefromlist(with the list of [ will ensure that it returns the integer for one of the corner spaces or if all the corner spaces are takenthe chooserandommovefromlist(function will return none and execution moves on to line try to take the centerif it is free if isspacefree(board )return if none of the corners are availableline moves on the center space if it is free if the center space isn' freethe execution moves on to line move on one of the sides return chooserandommovefromlist(board[ ]this code also makes call to chooserandommovefromlist()except you pass it list of the side spaces ([ ]this function won' return none because the side spaces are the only spaces that can possibly be left this ends the getcomputermove(function and the ai algorithm checking if the board is full def isboardfull(board) return true if every space on the board has been taken otherwise return false post questions to