First, you will need to install Docker following the instructions on their site.
composer install --devThen, simply run the following command:
docker-compose up -dExec to the php container:
docker exec -it php shPlace robot on some place
php index.php robot:place PLACE --x 0 --y 0 --facing NORTHMove robot with size (argument 1 = N units on 5x5 table)
php index.php robot:move 1Move robot facing LEFT/RIGHT
php index.php robot:facing LEFTReset robot (delete all previous positions - need place)
php index.php robot:resetPlace to 0,0 NORTH, then move -> OUT: 0,1 NORTH
php index.php robot:place PLACE --x 0 --y 0 --facing NORTH
php index.php robot:move 1Place to 0,0 NORTH, then change facing LEFT -> OUT: 0,0 WEST
php index.php robot:place PLACE --x 0 --y 0 --facing NORTH
php index.php robot:facing LEFTPLACE 1,2 EAST MOVE MOVE LEFT MOVE -> OUT: 3,3,NORTH
php index.php robot:place PLACE --x 1 --y 2 --facing EAST
php index.php robot:move 1
php index.php robot:move 1
php index.php robot:facing LEFT
php index.php robot:move 1Run tests:
php vendor/bin/codecept runFix code style:
vendor/bin/php-cs-fixer fix app/ Analyse code:
vendor/bin/phpstan analyse -l 4 app/