Skip to content

Tic Tac Toe is a PHP 7.1 application written following Domain-Driven Design approach.

Notifications You must be signed in to change notification settings

pgrau/php-tictactoe

Repository files navigation

Build Status Coverage Status

Tic Tac Toe is a PHP 7.1 application written following Domain-Driven Design approach.

You can see output app with the follow command line:

php app/console t:g:s

alt tag alt tag

Features

Multiplayer: Player 1 Vs Machine or Player 1 Vs Player 2
Custom icon
Custom icon's color. Availabe colors: black, red, green, yellow, blue, magenta, cyan and white
User's Repository is implemented in memory. You have two users availables: pepe and juan
Create an user
Remove an user

Mandatory requirements

  • PHP 7.1

Use Docker

You can use Docker with the follow the command line:

(Mac users) docker-machine start default

docker-compose up
docker exec -it tictactoe_php_1 /bin/bash

Use Composer

composer install

Unit Test

You can execute the unit test with the follow command

php bin/phpunit

You can execute code coverage with the follow command

php bin/phpunit  -c phpunit.xml.dist  --coverage-html=metrics

Symfony Commands

You can execute the symfony commands with the follow command

php app/console

About

Tic Tac Toe is a PHP 7.1 application written following Domain-Driven Design approach.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published