Skip to content

devux/TurtleCommandApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TurtleCommandApp

Solution for this problem

Turtle Command App with python

Turtle is on a N * N grid, with N obstacles. The turtle can only move F orward one position

and can turn L eft or R ight. The grid has 4 directions N, E, W, S

Assuming that the initial position of turtle is 1, 1 (bottom left corner of the grid facing North) and

the grid has random obstacles in a few of its cells, given the movement instructions, find the

final position of turtle and printing the grid state will be an added plus. When there is an

obstacle, movement is not possible.

Input

FFFRRFLF

Output

2,3 E

About

Turtle Command App with python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages