Hello there, here you can find some implementations of a 'fake' robot in a virtual grid.
It works with three simple commands:
L,M,R.Wich means Left, Move, Right.(I think i do not need to explain what those three do :p)
it returns:(x,y,Cardinal Point.)
An example:
Robot MMRM
It will move 2 times, and then turn to right and move again.
The return should be: (2,1,East)