The game is played according to slightly modified rules. Since the advantage of the first move in tic-tac-toe is obvious, now it is necessary to draw up two adjacent (parallel anyway it will not work) rows. The computer needs to prevent this and make a regular series; at the same time, computer moves randomly, which is logical, since any meaningful move is guaranteed to deprive the chances of winning.