Skip to content

debabratakarfa/symfony-console-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robot working log in Console

Symfony Console based App to determine Robot cleaning and charging time.

Installation

composer install

How to use it

  • 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 be hard or carpet value.
  • if you pass any other value then you will get error.
  • if you pass area = 0 also then you will get error.

Screenshots

Output for command php robot.php clean --floor=carpet --area=24

alt text

Tests

You can run tests by ./vendor/bin/phpunit tests