Skip to content

sseletskyy/ToyRobotSimulator

Repository files navigation

Short instruction

To run the Toy Robot Simulator in interraction mode

ruby game.rb

To run the Toy Robot Simulator with the commands from a file

ruby game.rb <file name>

Four example files are provided.

ruby game.rb example_1.txt  # -> 0,1,NORTH
ruby game.rb example_2.txt  # -> 0,0,WEST 
ruby game.rb example_3.txt  # -> 3,3,NORTH
ruby game.rb example_4.txt  # -> 4,4,EAST

Use this command to run the RSpecs

bundle # run once to install rspec gem 
rspec spec

About

Ruby TDD example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages