This is open source under the MIT License. You can obtain the source code from GitHub.
TicTacToe in C# wWnforms because why not?