Can you Tic Tac Toe?

Well that was a question that I asked myself. I was inspired by this blogpost: http://neverstopbuilding.com/minimax Without much further ado, Here's the algorithm. (I have strived to explain, what's going at every step in the form of comments) First of all, we need to establish a function,…