Playing tic tac toe could be such a basic topic that there is relatively little information on the internet about how to "always" win.
On the other hand writing a piece of code to solve Tic Tac Toe sounds like it could be a relatively common coding challenge.