TicTacToe sample written in C#