Skip to content

juancancela/toy-robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toy Robot

Simplistic example of a robot walking around a table from entrance up to the exit.

System Requirements

  • NodeJS 4.2.3 LTS
  • Tested under Mac OSX 10.11.1 (El Capitan) and Fedora 23

Installing NodeJS

Windows and Mac users

Linux Users

$ ./configure && make && make install

Test NodeJS was correctly installed

  • Test that NodeJS was correctly installed in your system executing following command (it must print v4.2.3):
$ node -v

Installing Toy Robot application

  • On application root path, run following command to download application dependencies
$ npm install

Starting application

  • On application root path, run following command to execute a file with commands
$ npm start <FILE_PATH>

(by default will execute input.txt file)

Executing application unit tests

  • On application root path, run following command to run tests
$ npm test

Checking application code coverage

  • On application root path, run following command to generate code coverage site
$ npm run coverage

Running provided examples and additional data sets

  • To run Example A (described in PROBLEM.md), execute:
$ npm run example_a
  • To run Example B (described in PROBLEM.md), execute:
$ npm run example_b
  • To run Example C (described in PROBLEM.md), execute:
$ npm run example_c
  • To run additional set A, execute:
$ npm run additional_a
  • To run additional set B, execute:
$ npm run additional_b

About

[CODE TEST] - toy-robot (Australia)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published