Exercise 7: Let's make Tic-Tac-Toe Game

Problem statement

Tic-tac-toe is a two-player game that has crosses (Xs) and noughts (Os). Players take turns marking the free spaces in a 3x3 grid with X or O. The winner is the one who successfully fills the spaces with their marks in a horizontal, vertical, or diagonal line before the other player.

Get hands-on with 1200+ tech skills courses.