Terminal Tic-tac-toe in C