Page cover

Tic-Tac-Toe

Play a game of Tic Tac Toe against Artificial Intelligence!

POST /tictactoe

- ai (REQUIRED): Specifies ("x" or "o") of the AI opponent.

- board (REQUIRED): Current state of the board. It is an array of strings, where each string represents a cell on the board. The array needs 9 elements.

- difficulty (REQUIRED): Specifies the difficulty level of the AI opponent. Valid values are "easy", "medium", or "hard".

Last updated