Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parser turtle by Daniel Gutiérrez Python logo

Parser of turtle python algorithm (descent recursive)

About

ParserTurtle is a Python project that parses turtle graphics commands using a descent recursive algorithm.

Usage

To use ParserTurtle, simply run the ParserTurtle.py with strings in testCases.txt containing the commands I implemented:

  1. md Move upwards, followed by a number in the range: 1-9
  2. ma Move downards, followed by a number in the range: 1-9
  3. mr Turn to the right
  4. ml Turn to the left
  5. lr To raise the OVNI and not write
  6. br To lower the OVNI and write
  7. repetir number[command number] To repeat certain commands
  8. cc to change colors, followed by a color :
  • #f03c15 rojo
  • #c5f015 verde
  • #1589F0 azul
  • #FFA433 naranja
  • #860DE1 morado
  • #FFF200 amarillo
  • #95724D cafe
  • #10F7E9 cyan
  1. ct to Center and Clear your window
  2. 0 to close the window and finish

About

Parser of turtle python algorithm (descent recursive)

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages