Tic-tac-toe is a classic two player game where players take turns to fill the grid with X or O. Whoever gets three consecutive horizontal, vertical or diagonal marks first wins the game.