Changed the first if statement inside the minimax function to check for wins of huPlayer instead of the player passed in to the function.
Changed score if the aiPlayer wins to 10 instead of 20. As said in the video, this doesn't affect functionality.
Other changes are whitespace changes made automatically by my text-editor.
Changed the first if statement inside the
minimax
function to check for wins ofhuPlayer
instead of theplayer
passed in to the function. Changed score if theaiPlayer
wins to10
instead of20
. As said in the video, this doesn't affect functionality. Other changes are whitespace changes made automatically by my text-editor.