Tekie.in

Tic Tac Toe or 'X' and 'O'

posted 2 years ago

if-else
function
while loop
games

Tic-tac-toe, is a paper-and-pencil game for two players, X or x and O or o, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a diagonal, horizontal, or vertical row is the winner. It is a solved game with a forced draw assuming best play from both players.