Tic-Tac-Toe implemented in Python