Date created: Summer 2015/16.
This is a Minimax algorithm implementation built on top of a Tic-Tac-Toe game I made in my free time. At the time of writing the algorithm, it was one of the most accurate Minimax algorithm implemented in JavaScript (based on the many bad minimax JavaScript implementations found when I was building this application.)
Now that I am CS student with more knowledge and experience, I really don't recommend how I learned to write this algorithm. (brute-forcing missing knowledge where needed)
Instead, I would recommend going through an Algorithms and Data structure book for starters like Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne. Then watch some supplementary material:
Then read: (I recommend Java or C++ guides)
And that should be good enough for a start.