I created this code as a "Proof Of Concept" for myself, as I'm self-taught in programming.
Hopefully someone finds it useful or also as a learning tool.
I also wrote a blog entry on it as an excercise: https://softwaremachines.blogspot.com/2012/05/what-i-learned-from-tic-tac-toe.html