Symfony Console based App to determine Robot cleaning and charging time.
composer install
- run command
php robot.php clean --floor=carpet --area=70
. - you see the state when it's cleaning or charging the battery as a command output.
- total time to complete all tasks in command output.
--floor
parameter can behard
orcarpet
value.- if you pass any other value then you will get error.
- if you pass area =
0
also then you will get error.
Output for command php robot.php clean --floor=carpet --area=24
You can run tests by ./vendor/bin/phpunit tests