Skip to content

MMHamdan/Turtle-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turtle-Interpreter

Simple Turtle Interpter. To build: import in Eclipse. Run TurtleInterpreter. A window should appear with button "Open File", click on button and a dialog box should appear. Select from folder TurtlePrograms any sample program. The interpreter will go through the commands in file and move Turtles. You can select more input files. You can also write your input file using an editor of your choice and see how it behaves. Language commands: turtle name - create a new turtle identified by the given name move name x - moves the named turtle forward by x units left name x - rotate the turtle anticlockwise by x degrees right name x - rotate the turtle clockwise by x degrees pen name up - lift the pen off the “paper” pen name down - put the pen down so that subsequent moves draw of the screen colour name c - set the drawing colour of the turtle appropriately Possible colours: red, blue, cyan, orange and green. Default is black or argument is unspecified colour.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages