PHP implementation of a TicTacToe game server.
- PHP 8.2+
- Clone the repository
- Install dependencies:
composer install
- Start the Symfony server:
symfony serve
Make a GET request to the root endpoint with a board state:
GET /?board=x++++++++
Board notation:
x
: Player moveso
: Server moves+
or space: Empty position- Board is read left-to-right, top-to-bottom
Run tests with:
php bin/phpunit