Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

sidd-kulk/robotpractice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robot practice for TDD

It's been long since I have practiced TDD in true spirit. This is an attempt to do it.

Thanks to this repo

Problem definition

A Robot is placed at an initial location in a hypothetical infinite grid. It is capable of moving in specific directions and letting you know its position. Here are the things that it can do -

  • It can receive some directions to move in the grid
    • Directions could be LEFT / RIGHT / UP / DOWN. A sample direction input is LLRRUUD
  • On receiving a direction, it changes its position
  • It can also move in just one direction, Left Or Right or Up or Down
  • It lets you ask its final position in (x,y) format