1. Go to this page and download the library: Download air-petr/tic-tac-toe-ai library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
air-petr / tic-tac-toe-ai example snippets
use AirPetr\TicTacToeAi\Player;
use AirPetr\TicTacToeAi\Board;
$board = new Board();
$player = new Player();
echo $board->toString(); // "_________"
$boardWithMove = $player->placeMark('X', $board);
echo $boardWithMove->toString(); // "__X______"