TIC TAC TOE as a service - Domain Driven Design
- PHP 7.1.3 or higher;
git clone https://github.com/jjmonagas/tictactoe.git
cd tictactoe/
composer install
cd tictactoe/
php bin/console tictactoe:create-user Charles
php bin/console tictactoe:delete-user Charles
php bin/console tictactoe:play:start Charles Mary 'Mi Tic tac'
php bin/console tictactoe:play:start Charles Mary 'Mi Tic tac' -d 5
php bin/console tictactoe:play:start Charles Mary 'Mi Tic tac' -d 2
php bin/console tictactoe:mark:cell Mary 'Mi Tic Tac Board' 1 2
php bin/console tictactoe:check:finished:winner Charles Mary 'My Tic Tac'
php bin/console tictactoe:check:finished:winner Charles Mary 'My Tic Tac' -w A
php bin/console tictactoe:check:finished:winner Charles Mary 'My Tic Tac' -w B
php bin/console tictactoe:check:finished:winner Charles Mary 'My Tic Tac' -w 0
cd tictactoe/
php bin/phpunit
php bin/phpunit tests/Application/Command/TictactoeCheckFinishedWinnerCommandTest.php
php bin/phpunit tests/Domain/Game/Factory/GameBoardFactoryTest.php
php bin/phpunit tests/Domain/Game/Factory/GameBuilderTest.php
php bin/phpunit tests/Domain/Game/Model/GameBoardTest.php
php bin/phpunit tests/Domain/Game/Model/GameTest.php
php bin/phpunit tests/Domain/Game/GameServiceTest.php
php bin/phpunit tests/Domain/User/Factory/UserFactoryTest.php
php bin/phpunit tests/Domain/User/UserServiceTest.php